[R] changing graphs in qqplot2

Sigrid s.stenerud at gmail.com
Sun Jul 10 03:29:44 CEST 2011


Great.

Thank you for your suggestions.

In case other people are interested too, this is what I got now.
I was able to

#added labels for x-axis and y-axis
p + scale_y_continuous("number of votes") 
p + scale_x_continuous("number of votes") 


# specify breaks
p + scale_x_continuous(breaks=1:4)
 

#overwriting labels
p+scale_colour_hue(breaks='A', labels='label A')+
scale_colour_hue(breaks='B', labels='label B')


# adding line with abline
> p + geom_abline(intercept = 8, slope=5, colour = "blue", size = 1, subset
> = .(COUNTRY == 'low'))+ geom_abline(intercept = 12, slope=9, colour =
> "green", size = 1, subset = .(COUNTRY == 'low'))

Thank you

--
View this message in context: http://r.789695.n4.nabble.com/changing-graphs-in-qqplot2-tp3626510p3657048.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list