hadley / r4ds

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

Update data-visualize.qmd #1582

Closed duncanjunegong closed 1 year ago

duncanjunegong commented 1 year ago

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

mine-cetinkaya-rundel commented 1 year 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.