Hi, I struggle to order the variables on the 'final' y-axis as I would like to? I want 'EPP'to be the first.
Thank you
ggplot(pos7,aes(x=factor(EPG,levels=c("EFFD","Greens/EFA","GUE/NGL","ALDE","ECR","S&D","EPP")),y=value,color=EPG,weight=seats))+
geom_jitter(position=position_jitter(width=0.2,height=0),alpha=0.8)+
geom_boxplot(alpha=0,show.legend=FALSE,lwd=1)+
scale_color_manual(limits=c("EPP","S&D","ECR","ALDE","GUE/NGL","Greens/EFA","EFDD"),
values=c("#fcdd22","#fc1414","#106da8","#ec008c","#c6262c","#44911d","#00abbc"))+
guides(color=guide_legend(""))+
theme(legend.position="bottom",
axis.text.y=element_blank(),
axis.ticks=element_blank())+
labs(x="",y="",title="",subtitle=expression(paste("7"^"th", " European Parliament (Chapel Hill Expert Survey 2010)")))+
facet_grid(variable~.)+
coord_flip()
#> Error in ggplot(pos7, aes(x = factor(EPG, levels = c("EFFD", "Greens/EFA", : could not find function "ggplot"