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
Using scale_fill_manual changes the order of the colouring in the plot, but not in the legend. If I try to give it a named vector, the plot colours are right, but the legend is wrong.
require(likert)
#> Loading required package: likert#> Loading required package: ggplot2
library(ggplot2)
data(pisaitems)
l<- likert(pisaitems[13:17])
plot(l) +
scale_fill_manual(values= c(
"black",
"pink",
"green",
"yellow",
"blue"
))
#> Scale for 'fill' is already present. Adding another scale for 'fill', which#> will replace the existing scale.
Using
scale_fill_manual
changes the order of the colouring in the plot, but not in the legend. If I try to give it a named vector, the plot colours are right, but the legend is wrong.Created on 2022-10-10 with reprex v2.0.2
Session info
The text was updated successfully, but these errors were encountered: