Good Morning, I am using xyplot to show two variables for each of several subjects as follows: xyplot(y~x|as.factor(ID), type="b", layout=c(7,9), scales=list(x=list(tick.number=3), y=list(tick.number=5)))
This is almost exactly the code I used for an earlier project, the only change is the number of ticks, but I'm getting all kinds of craziness on my Y axis. I played around with everything, and by only using the first 100 or so subjects I can get everything to work out right, but when I run the whole dataset my Y axis goes crazy. When I do 1,1 in layout and stretch the window the full height of my screen it looks like it is starting at 100 and going up to the top value of my Y data, and then continuing on the Y values lower than 100, but everything is overlapped so I'm not quite sure. Is the problem in my data? (read.csv from an excel file) Is it in the range of my data? Is it some little detail I'm leaving out of my code? Thanks, Phillip P.S. This isn't very important, but I am curious and maybe one of you knows, why does R start from the bottom and go up when doing the lattice plots? My first subjects are at the bottom of the page, and move higher as you move up the page. [[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.