I am using this data https://www.dropbox.com/s/aqt7bdhzlwdsxl2/summary_exp1.csv
And the following code:
pd <- position_dodge(.1)
ggplot(data=summary.200.exp1, aes(x=Time, y=Length, colour=Genotype, group=Genotype)) +
geom_errorbar(aes(ymin=Length - se, ymax=Length + se), colour="black", width=.1, position=pd) +
geom_line(position=pd) +
geom_point(aes(shape=Genotype),position=pd, size=3) +
ylab("leaf segment width (mm)") +
xlab("Time") +
theme(axis.title = element_text(size=14,face="bold"),
axis.text = element_text(size=14),
strip.text.y = element_text(size=14))
I need to make the following modifications:
- Adjust the x-axis limits to eliminate the spaces between the y-axis and the data plotted at
time0and then betweenTime22and the edge of the graph. I have looked at documentation and tried this:scale_x_discrete(limits=c("0","22")), but it doesn't work. - Modify labelling so that each line on the graph is labelled with a distinct colour, the "Genotype" and the legend is eliminated. For this I have tried various options with
geom_text(aes(colour=Genotype)), which I also cannot get to work.
I would appreciate any help with this. Many thanks
