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
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
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,
roject.org [mailto:r-help-boun...@r-project.org] On
> Behalf Of Doran, Harold
> Sent: Thursday, December 09, 2010 12:40 PM
> To: r-help@r-project.org
> Subject: [R] Condional Density Plot from different data
>
> I'm not certain I am using the lattice plot correctly here. Below is
I'm not certain I am using the lattice plot correctly here. Below is
reproducible code. Suppose I have two data frames, such as:
set.seed(1234)
datA <- data.frame(condition = gl(3, 100), scores = c(rnorm(100), rnorm(100,
1,1), rnorm(100, 2,1)))
datB <- data.frame(condition = gl(3, 1000), scores
5 matches
Mail list logo