Skip to content

Control y axis

2 messages · arun, David L Carlson

#
Hi,
No problem.

I was gettting -8 and 6 for the code I sent to you.? I am using R 2.15.? 


This code gets -8 and 8 for the y axis:
?x<-1:17
A.K.
#
Using x/yaxp also works:

plot(x, y, type ="o", xlab="Panelist", ylab="T value", lwd=1.5, 
    xaxp=c(0, 18, 9), yaxp=c(-8, 8, 8), las=1)

----------------------------------------------
David L Carlson
Associate Professor of Anthropology
Texas A&M University
College Station, TX 77843-4352