My SAS brain was still plugged in.  I had a missing data point entered as a
"."  I didn't think anything of it since SAS treats that as missing data.
Apparently it confuses R.  I deleted the "." re-imported the data and
everything was beautiful.  If anyone is bored I am still interested in why R
orders lattice plots from bottom to top.

Thanks,
Phillip

On Thu, Oct 30, 2008 at 1:25 PM, Phillip Porter <philnotfil@gmail.com>wrote:

> 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]]

