R-ecology-lesson icon indicating copy to clipboard operation
R-ecology-lesson copied to clipboard

Suggest moving use of str() in Episode 2 setup to a place where it feels more natural

Open nicole-a-moore opened this issue 6 months ago • 1 comments

How could the content be improved?

In Episode 2. Data visualization with ggplot2, the Setup section jumps right into teaching the learner the ?help function, the View() function, and the str() function, but without really showing when you would use each. Then, in the next section, when building the first ggplot it isn't really clear how we know that the variables weight and hindfoot_length exist as columns of the complete_old dataset.

I think the flow of the lesson could be improved and the utility of the str() function better communicated if we teach the str() function later. In the Setup section, I suggest teaching how to use the ?help and View() functions to get an initial idea of what the complete_old dataset looks like. Then, in the Plotting with ggplot section, we can show how to use the str() function to quickly see which variables of the dataset we can map onto our ggplot.

Which part of the content does your suggestion apply to?

https://datacarpentry.org/R-ecology-lesson/visualizing-ggplot.html#setup

nicole-a-moore avatar Aug 20 '24 14:08 nicole-a-moore