[R] newbie graphics question

Ko-Kang Kevin Wang Ko-Kang at xtra.co.nz
Wed Aug 29 06:14:45 CEST 2001


I think if you want to add a line (or superimpose a line) onto a plot you want to use lines().

So what you want is:
 plot( x, y )
 lines( x, z )

If you want to add some texts, then use text(), legend() for a legend, title() for axis labels/titles.

Hope this helps,

Ko-Kang Wang

----------------------------------------------
Ko-Kang Kevin Wang
Head of Statistical Analysis Division
Software Developers' Klub (SDK)
University of Auckland
Auckland
New Zealand


-----Original Message-----
From: owner-r-help at stat.math.ethz.ch
[mailto:owner-r-help at stat.math.ethz.ch]On Behalf Of Myriam Abramson
Sent: Wednesday, August 29, 2001 2:30 PM
To: r-help at stat.math.ethz.ch
Subject: [R] newbie graphics question



Hi!

I need to plot two lines on the same graph. I do
plot(x,y)
then 
plot(x,z,add=TRUE)

but I get the following warning messages
Warning messages: 
1: parameter "add" couldn't be set in high-level plot() function 
2: parameter "add" couldn't be set in high-level plot() function 
3: parameter "add" couldn't be set in high-level plot() function 
4: parameter "add" couldn't be set in high-level plot() function 
5: parameter "add" couldn't be set in high-level plot() function 
6: parameter "add" couldn't be set in high-level plot() function 

Thanks for  your help.
-- 
                                   myriam

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list