[R] Control y axis

arun smartpink111 at yahoo.com
Sat Jul 21 03:06:17 CEST 2012


The bracket after lty=1 should be replaced with comma (,).
 plot(x, y, type ="o", xlab="Panelist", ylab="T value",lwd=1.5,lty=1,xlim=range(1:14),ylim=range(-8:8),las=1)


----- Original Message -----
From: stefaniewind <wind.stefanie at gmail.com>
To: r-help at r-project.org
Sent: Friday, July 20, 2012 3:29 PM
Subject: [R] Control y axis

I can't get the y axis to extend the full range that I need, which is -8 to 8

Here's my code. I tried using ylim, but it's still truncating at the
extremes in my data.

plot(x, y, type ="o", xlab="Panelist", ylab="T value",lwd=1.5,lty=1)
xlim=range(1:14),ylim=range(-8:8), las=1)

Any suggestions?


View this message in context: http://r.789695.n4.nabble.com/Control-y-axis-tp4637266.html
Sent from the R help mailing list archive at Nabble.com.

R-help at r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list