hadley / r4ds

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

Exercise 5 in 10.5.1 #1543

Closed pmur67 closed 1 year ago

pmur67 commented 1 year ago

Exercise statement says "... we need to set group = 1." I think this must refer only to the first example, which does not include the fill aesthetic. For the second example, I think the intended fix is to have group = color, in addition to having fill = color. (Here, color is a variable in the diamonds data frame, not an aesthetic.) Perhaps the intention is for the reader to figure this out on their own, but I found it a little confusing.

mine-cetinkaya-rundel commented 1 year ago

Should have said "we needed to" referring to earlier plot. Thank you!