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

jim holtman jholtman at gmail.com
Wed Apr 23 19:09:24 CEST 2008


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 would expect for output.

On Wed, Apr 23, 2008 at 10:11 AM, Johannes Graumann
<johannes_graumann at web.de> wrote:
>
> 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-help at r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> > http://www.R-project.org/posting-guide.html and provide commented,
> > minimal, self-contained, reproducible code.
>
> I'll try less impolite and with more info ...
>
> I'm writing a function that contains this:
>
> # function(x, ... , morestuff){}
>
> which is gathered into a list like so:
>
> # mylist <- list(x, ...)
>
> down the line I'd like to output all elements from "mylist" in seperate
> vioplots in a single coordiante system. Now I have a hell of a time with
> that because vioplot does not accept a list as input but only a succession
> of vectors ... how can I now force my list into that form so a can say
>
> # vioplot(magicfunction(mylist))
>
> and get a violin plot for each list-member?
>
> Thanks for any hint,
>
>
> Joh
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?



More information about the R-help mailing list