[R] Help with Plotting Function

Jason Turner jasont at indigoindustrial.co.nz
Sat May 22 11:40:09 CEST 2004


On Fri, May 21, 2004 at 12:41:53PM -0400, Harold Doran wrote:
> Dear List:
> 
> I cannot seem to find a way to plot my data correctly. I have a small data frame with 6 total variables (x_1 ... x_6).
> 
> I am trying to plot x_1 against x_2 and x_3.
> 

Sundar has already answered the question - here's another trick for
displaying multiple data sets with lines, etc, to avoide cluttering
any one plot too much...

data(iris)
library(lqs)
plot(iris[,1:3],panel=function(x,y,...) {
    points(x,y,...)
    zz <- ltsreg(y~x)
    abline(zz)
})

Cheers

Jason
-- 
Indigo Industrial Controls Ltd.
http://www.indigoindustrial.co.nz
64-21-343-545
jasont at indigoindustrial.co.nz




More information about the R-help mailing list