Re: [R] Condional Density Plot from different data

2011-07-09 Thread Uwe Ligges
On 08.07.2011 18:54, rstudent wrote: Tried this Tried what? Nothing cited Please cite the original examples and answers so that we can follow up. Best, Uwe Ligges > and received this error: Error in hist.default(x = integer(0), plot = FALSE) : invalid number of 'breaks' -- Vi

Re: [R] Condional Density Plot from different data

2011-07-08 Thread rstudent
Tried this and received this error: Error in hist.default(x = integer(0), plot = FALSE) : invalid number of 'breaks' -- View this message in context: http://r.789695.n4.nabble.com/Condional-Density-Plot-from-different-data-tp3080615p3654634.html Sent from the R help mailing list archive at Na

Re: [R] Condional Density Plot from different data

2010-12-09 Thread Deepayan Sarkar
On Thu, Dec 9, 2010 at 10:11 AM, Doran, Harold wrote: > Perhaps I found a solution as: > > datA$type <- gl(1, nrow(datA), label = 'PopA') > datB$type <- gl(1, nrow(datB), label = 'PopB') > dat <- rbind(datA, datB) Or, slightly shorter dat <- make.groups(datA, datB) densityplot(~scores|condition,

Re: [R] Condional Density Plot from different data

2010-12-09 Thread Doran, Harold
Perhaps I found a solution as: datA$type <- gl(1, nrow(datA), label = 'PopA') datB$type <- gl(1, nrow(datB), label = 'PopB') dat <- rbind(datA, datB) densityplot(~scores|condition, group = type, dat) > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-projec