Skip to content

Help with Plotting Function

3 messages · Harold Doran, Sundar Dorai-Raj, Jason Turner

#
Harold Doran wrote:

            
Harold,

Looks like you're looking for ?points or ?lines.

plot(x_2, x_1)
lines(x_3, x_1)

--sundar
#
On Fri, May 21, 2004 at 12:41:53PM -0400, Harold Doran wrote:
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