Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

Changing boxplot in graphics to bwplot in lattice

$
0
0

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::bwplotfor 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!


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>