You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fill and colour scales no longer seem to support passing name as the first unnamed argument after v4.0.0.
ggplot(mtcars, aes(x=disp, y=hp, size=gear, colour=wt, fill=factor(cyl))) +
geom_point(shape=21) +
scale_fill_discrete("Cylinders") +# Fill and colour scales are affected
scale_colour_continuous("Weight") +# Both discrete and continuous
scale_size_continuous("Gears") # Some(?) other scales are not
Expecting the legend labels “Cylinders” and “Weight”. Explicitly passing name gives the expected result.