I have a problem changing boxplot
in the graphics
package to an equivalent in the lattice
package.
graphics:
xx1 <- rnorm(20, mean = 3, sd = 3.6)
xx2 <- rpois(40, lambda = 3.5)
xx3 <- rchisq(31, df = 5, ncp = 0)
box1 <- boxplot(xx1, xx2, xx3, names = c("Group-1", "Group-2",
"Group-3"), cex = 0.7)
How to use lattice::bwplot
for box1?
after creating new variable data<-c(xx1, xx2, xx3)
and placing it into bwplot
, I receive only one plot instead of three (one for each distribution). Could you please help?
Thanks!