[R] variation on vioplot?

John Kane jrkrideau at yahoo.ca
Fri Jun 2 16:33:05 CEST 2006


I don't think this is exactly what you want but try:

par(mfrow=c(1,2))
vioplot(normal, names="Normal", horizontal=TRUE,
ylim=c(-12,12))
vioplot(uniform, names ="Uniform", horizontal=TRUE,
ylim=c(-12,12))



--- Karin Lagesen <karin.lagesen at medisin.uio.no>
wrote:

> Michael Dondrup
> <michael.dondrup at cebitec.uni-bielefeld.de> writes:
> 
> > Hi Karin,
> > I would like to help with this, but it's not
> completely clear to me
> > what your vioplots look or should look like. Could
> you post a little
> > reproducible code example to the list, and then
> specify what should be
> > different?
> 
> OK.
> 
> Adapted from the vioplot example:
> 
> source("vioplot.R")
> uniform<-runif(2000,-4,4)
> normal<-rnorm(2000,0,3)
> vioplot(normal,uniform,horizontal=TRUE)
> 
> Now these two are positioned one on top of the
> other. I would like to
> have them next to each other, if possible. I would
> then like the scale
> underneath to be duplicated so that there is one
> scale underneath each
> of them.
> 
> Karin
> -- 
> Karin Lagesen, PhD student
> karin.lagesen at medisin.uio.no
> http://www.cmbn.no/rognes/
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>



More information about the R-help mailing list