hadley / r4ds

R for data science: a book
http://r4ds.hadley.nz
Other
4.51k stars 4.19k forks source link

Update data-visualize.qmd #1582

Closed duncanjunegong closed 10 months ago

duncanjunegong commented 11 months ago

no 'linewidth' parameter in geom_density() but 'size'

mine-cetinkaya-rundel commented 10 months ago

Thanks for the feedback. Note that starting with ggplot2 3.4.0, using size aesthetic for lines was deprecated. So linewidth is the correct argument here.