i want to rotate the legend box
so it can match with the plot
library(tidyverse) ggplot + geom_boxplot(data = df , aes = (x = xx, y = yy, color = cc))
in this plot
the legend direction is not compatible with plot content.
i want to rotate the legend with 90.
maybe i show ed some new content to illustrate this question.
we can see the legend boxplot is one situation.
now suppose i want to get the pig 2
look at the legend. it is reversed. and i want to know how i can get that place. and at the same time, i want to make text(just like am,0,1) not to rotate, just rotate the icon.
Thank you for your reply.