[R] add=TRUE function not working

Sarah Goslee sarah.goslee at gmail.com
Mon Oct 12 03:03:10 CEST 2009


You're going about it the wrong way:

plot(p, q1)
lines(p, q2)

or
points(p, q2)
depending on what you want it to look like.

Sarah

On Sun, Oct 11, 2009 at 8:52 PM, Mehdi Khan <mwkhan at ucdavis.edu> wrote:
> Hey everybody, I have a matrix with three columns.
>
> I want to plot two columns (independent variable) against one column (the
> defendant). This is my code and the error associated with it:
>
> plot(p, q, data=columns)
>
>> plot(pprime,q, add=TRUE)
> Warning messages:
> 1: In plot.window(...) : "add" is not a graphical parameter
> 2: In plot.xy(xy, type, ...) : "add" is not a graphical parameter
> 3: In axis(side = side, at = at, labels = labels, ...) :
>  "add" is not a graphical parameter
> 4: In axis(side = side, at = at, labels = labels, ...) :
>  "add" is not a graphical parameter
> 5: In box(...) : "add" is not a graphical parameter
> 6: In title(...) : "add" is not a graphical parameter
>
> How do I resolve this problem?
>
> thanks!

-- 
Sarah Goslee
http://www.functionaldiversity.org




More information about the R-help mailing list