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
The scale_*_manual functions are super useful. Is it possible that the values argument in these could default to NULL? This would allow users familiar with them to use them to change other non-values aspects of the scale through these functions
library(tidyverse)
p<- ggplot(mtcars, aes(mpg, wt)) +
geom_point(aes(colour=factor(cyl)))
#you can do this currentlyp+
scale_colour_manual(values= c("red", "blue", "green"),
breaks= c(4, 6))
#I would like to be able to do thisp+
scale_colour_manual(breaks= c(4, 6))
#> Error in `palette()`:#> ! Insufficient values in manual scale. 3 needed but only 0 provided.