dlab-berkeley / R-Data-Visualization-Legacy

D-Lab's 3 hour introduction to data visualization with R. Learn how to create histograms, bar plots, box plots, scatter plots, compound figures, and more using ggplot2 and cowplot.
28 stars 20 forks source link

Introduce kernel density plots via ggplot #12

Closed pssachdeva closed 3 years ago

pssachdeva commented 3 years ago

I don't think it's necessary to introduce KDEs via base R. The base R section should be somewhat limited so that we can get to ggplot as soon as possible. We should introduce geom_density, instead.

asteves commented 3 years ago

@pssachdeva I don't see anything in this repo about KDEs. Are you suggesting that they be included in the script?

pssachdeva commented 3 years ago

Sorry, they were already introduced in the base R section. I removed that but didn't add in a portion in the ggplot section. We can add it back in. I just hesitated to do so since the lesson is already pretty full.

asteves commented 3 years ago

Gotcha. We could just choose to be opinionated and reject base graphics entirely. All of the challenges are ggplot2.