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
|