Re: [R] overlay 2 dot plots

2013-06-22 Thread David Winsemius
Kay -- David > > thanks for the help, > > Cheers, > > Andras > > --- On Fri, 6/21/13, Bert Gunter wrote: > >> From: Bert Gunter >> Subject: Re: [R] overlay 2 dot plots >> To: "Andras Farkas" >> Cc: r-help@r-project.org >>

Re: [R] overlay 2 dot plots

2013-06-22 Thread Andras Farkas
I meant: library(lattice) y <-c(1:58) x <-runif(58,5,10) z <-runif(58,8,12) dataset <-data.frame(y,x,z) dotplot(y ~ c(x,z), data = dataset,col=c("blue","red")) thanks for the help, Cheers, Andras --- On Fri, 6/21/13, Bert Gunter wrote: > From: Bert Gunter

Re: [R] overlay 2 dot plots

2013-06-21 Thread Duncan Mackay
TX 77840-4352 -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Andras Farkas Sent: Friday, June 21, 2013 2:43 PM To: r-help@r-project.org Subject: [R] overlay 2 dot plots Dear All, wonder if you would provide your insights on the

Re: [R] overlay 2 dot plots

2013-06-21 Thread David Carlson
Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Andras Farkas Sent: Friday, June 21, 2013 2:43 PM To: r-help@r-project.org Subject: [R] overlay 2 dot plots Dear All, wonder if you would provide your insights on the following: the code: library(lat

Re: [R] overlay 2 dot plots

2013-06-21 Thread Bert Gunter
dotplot is a lattice function. "add" is an argument to some base graphics. Never the twain shall meet. There is no "add" argument to dotplot -- did you read the lattice Help for dotplot (found under xyplot)?? I don't understand what you mean by "overlay" dotplots, but lattice does this via conditi

[R] overlay 2 dot plots

2013-06-21 Thread Andras Farkas
Dear All, wonder if you would provide your insights on the following: the code: library(lattice) y <-c(1:58) x <-runif(58,5,10) z <-runif(58,8,12) dataset <-data.frame(y,x) dotplot(y ~ x, data = dataset) dataset <-data.frame(y,z) dotplot(y~z,data = dataset,col="red") I would like to overlay the