I have the following data frame in R and have currently the following ggplot.
means.df <- data.frame(means,columnnames,coltype)
p1 <- ggplot(means.df, aes(x=means,y=columnnames,color=factor(coltype) )) +
geom_point() + scale_color_manual(values=c("blue", "red", "black"))
Now my plot is colored correctly based on the factor 'coltype', but is still ordered alphatbetically. I want to change the order based on the factor 'coltype', how should I do this?