Re: [R] Scatter plot produces "'x' and 'y' lengths differ"

2011-06-16 Thread Daniel Malter
It likely means that your x and y are differently long. That is, affect1 and adh1scr do not contain the same number of values in that instance. That precludes them from being plotted against each other. abline and lowess would fail for the same reason. x<-c(1,2,3) y<-c(2,4) plot(y~x) complete.case

[R] Scatter plot produces "'x' and 'y' lengths differ"

2011-06-16 Thread Alspach, Steven E.
Hello, I am working on a project to create some scatter plots. I have syntax for 26 plots, and 22 of them display as they should. But here, for example, is a sample of the command syntax I am using: good <- complete.cases(affect1,adh1scr) plot (jitter(affect1,2.0),jitter(adh1scr,1.0),xli