Re: [R] Feed list of vectors to vioplot()?

2008-04-24 Thread Johannes Graumann
Dirty solution: switched off x-axis plotting via 'par' and added it the personalized way with 'axis'. Joh Johannes Graumann wrote: > Hm, now I have trouble using additional "vioplot" parameters. > > mu<-2 > si<-0.6 > bimodal<-c(rnorm(1000,-mu,si),rnorm(1000,mu,si)) > uniform<-runif(2000,-4,4) >

Re: [R] Feed list of vectors to vioplot()?

2008-04-24 Thread Johannes Graumann
Hm, now I have trouble using additional "vioplot" parameters. mu<-2 si<-0.6 bimodal<-c(rnorm(1000,-mu,si),rnorm(1000,mu,si)) uniform<-runif(2000,-4,4) normal<-rnorm(2000,0,3) mylist <- list(bimodal,uniform,normal) # Easy do.call(vioplot,mylist) # Works do.call(vioplot,c(mylist,col="white")) # Does

Re: [R] Feed list of vectors to vioplot()?

2008-04-23 Thread Johannes Graumann
Off-list it was pointed out to me that the trivial solution to this would look like this: myfunction2 <- function(x, ...){ mylist <- list(x, ...) # plenty of "lapply" stuff do.call(vioplot,mylist) } Thanks for everybodies patience, Joh Johannes Graumann wrote: > > > Thanks for the very

Re: [R] Feed list of vectors to vioplot()?

2008-04-23 Thread Johannes Graumann
Thanks for the very appropriate scolding. Here's my example (based on "?vioplot"): mu<-2 si<-0.6 bimodal<-c(rnorm(1000,-mu,si),rnorm(1000,mu,si)) uniform<-runif(2000,-4,4) normal<-rnorm(2000,0,3) # Working just fine myfunction1 <- function(x, ...){vioplot(x,...)} myfunction1(bimodal,uniform,norm

Re: [R] Feed list of vectors to vioplot()?

2008-04-23 Thread jim holtman
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. It is hard to provide a solution if we do not understand the problem to be solved. Sample data would be helpful along with an understanding of what you w

Re: [R] Feed list of vectors to vioplot()?

2008-04-23 Thread Johannes Graumann
Johannes Graumann wrote: > Hi, > > I have a list of vectors and am trying to coerce them into something that > vioplot will take as groups of data to be plotted independently. Can > someone nudge me into the right direction? > > Thanks, Joh > > __ > R

[R] Feed list of vectors to vioplot()?

2008-04-22 Thread Johannes Graumann
Hi, I have a list of vectors and am trying to coerce them into something that vioplot will take as groups of data to be plotted independently. Can someone nudge me into the right direction? Thanks, Joh __ R-help@r-project.org mailing list https://stat.