[R] add=TRUE function not working

David Winsemius dwinsemius at comcast.net
Mon Oct 12 04:00:36 CEST 2009


What do you mean by "define the scale"?

--

On Oct 11, 2009, at 9:26 PM, Mehdi Khan wrote:

> Okay it worked, is there any way I can define the scale though?
>
> thanks a lot!
>
> On Sun, Oct 11, 2009 at 6:08 PM, Daniel Malter <daniel at umd.edu> wrote:
>
>> x1=rnorm(100)
>> x2=rnorm(100)
>> e=rnorm(100)
>> y=1.5*x1+x2+e
>>
>> plot(y~x1,pch=1,xlim=c(min(x1,x2),max(x1,x2)))
>> points(y~x2,pch=16)
>>
>> HTH
>> Daniel
>>
>>
>> -------------------------
>> cuncta stricte discussurus
>> -------------------------
>>
>> -----Ursprüngliche Nachricht-----
>> Von: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org 
>> ] Im
>> Auftrag von Mehdi Khan
>> Gesendet: Sunday, October 11, 2009 8:52 PM
>> An: r-help at r-project.org
>> Betreff: [R] add=TRUE function not working
>>
>> 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!
>>
>>        [[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.
>>
>>
>
> 	[[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.

David Winsemius, MD
Heritage Laboratories
West Hartford, CT




More information about the R-help mailing list