[R] Displaying additional values on the Y-axis ggplot2

From: Christopher David Desjardins <cddesjardins_at_gmail.com>
Date: Thu, 24 Jun 2010 13:16:22 -0500


  Hi,
I am running the following code:

mfg0 <- ggplot(aes(x=Grade,y=Math,colour=RiskStatic45678),data=math.f) mfg1 <- mfg0 + geom_smooth(method="lm", formula=y ~ ns(x,2),size=1) + geom_smooth(aes(y=nalt.math,color="NALT"),size=1,data=nalt) + scale_colour_brewer("Risk Status", pal="Set1") + coord_cartesian(ylim = c(175, 245))
mfg1

And when I specify that, the only value that shows up on the Y-axis is a '200'. How can I manually specify that I want 180, 200, 220, and 240 to show up? Also please cc me on the email as I am a digest subscriber.

Chris



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 24 Jun 2010 - 18:21:10 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 24 Jun 2010 - 21:50:35 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive