I have the following simple R code:
disciplines <- c(\"A\",\"C\",\"B\",\"D\",\"E\")
# To stop ggplot from imposing alphabetical ordering on x-axis
discipl
A better documented, and perhaps more intuitive, solution would be to simply use coord_cartesian
:
ggplot(df.m, aes(group=1,disciplines,value,colour=variable,shape=variable)) +
geom_point() +
geom_smooth(stat="smooth", method=loess, level=0.95) +
scale_x_discrete(name="Disciplines") +
coord_cartesian(ylim = c(-1,1))