s-news
[Top] [All Lists]

[S] help me debug the tiny plot program

To: s-news@wubios.wustl.edu
Subject: [S] help me debug the tiny plot program
From: Wenxin Mao <mao@compstat.wharton.upenn.edu>
Date: Fri, 26 Feb 1999 13:37:34 -0500 (EST)
Sender: owner-s-news@wubios.wustl.edu


I am learning guiCreate and guiModify,
(cause they produce editable graphics)
(winnt, splus 4.3)

I just want to plot two functions, then put a legend, say "first " and
"second"
but the next program doesn't work:

x <- seq(0,10,.1)
y <- x
y1 <- x^2
 graphsheet()
 plot(x,y,type="l",lty=3)
 par(new=T)
 plot(x,y1,type="l",lty=8)
 guiCreate("Legend",name="1$1",hide=F,xPosition=2,yPosition=2)
 guiModify("LegendItem",name="1$1$1",Text="first")
 guiModify("LegendItem",name="1$1$2",Text="second")

Please help me.

Also, what is "trellis graphics" ?

Thanks,
Vincent




-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>
  • [S] help me debug the tiny plot program, Wenxin Mao <=