Hi friends - I managed to simplify my question very much: I have a plot which works just fine, MPH and fpH each 76, predicts is a data.frame length 1000 of x and y
pp <- ggplot(FH0,aes(x=MPH,y= fpH))+geom_line(linetype=1,size=3,colour="blue")+
ylab("Fitted pH")+xlab("Measured pH")+xlim(c(6.9,7.7)) +ylim(c(6.9,7.7))
ppp <- pp + theme_bw()+ geom_line(data=predicts,size=3,col="red")
ppp
and then I have the desire to add a line specified in the data.frame slines
> slines
x y
1 7.220 7.349371
2 7.290 7.413105
3 7.290 7.413105
4 7.300 7.422209
5 7.315 7.435867
6 7.320 7.440419
7 7.400 7.513257
8 7.410 7.522362
9 7.430 7.540571
10 7.440 7.549676
when I do naively
ppp + geom_line(data=slines,size=0.1)
I get the message
error: Aesthetics must either be length one, or the same length as the dataProblems:fpH - what goes wrong here?