The x-axis works fine, it's for the y axis that I'm specifying 4 (y=seq(0,3,1)) and still getting 7.
On Sat, Mar 28, 2009 at 9:20 PM, David Winsemius <dwinsem...@comcast.net>wrote: > a s <aquestsi <at> gmail.com> writes: > > > > > Hi, I am trying to specify four ticks (at 0,1,2,3 for the y axis) in a > persp > > plot but the defaults overrule my specification and I obtain seven of > them. > > Is it possible to gain full control over them in such a plot? Here is my > > code: > > > > matlines=matrix(c(1:7,3:9,3:9,2:8),nrow=7,ncol=4) > > persp(x=seq(1,7,1), > > I am puzzled. You have just specified 7 "x" coordinates. Why did you expect > to > get fewewer than 7 points? > > -- > David Winsemius > > y=seq(0,3,1),z=matlines,theta=-30,phi=25,zlim=c > (0,10),d=5,ticktype="detailed",xlab="x", > > ylab="y",zlab="z") > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > 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. > > > > > > ______________________________________________ > R-help@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. > [[alternative HTML version deleted]] ______________________________________________ R-help@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.