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 <[EMAIL PROTECTED]>
wrote:

> Michael Dondrup
> <[EMAIL PROTECTED]> 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
> [EMAIL PROTECTED]
> http://www.cmbn.no/rognes/
> 
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to