Re: [R] horizontal violin plots?

From: Deepayan Sarkar <deepayan.sarkar_at_gmail.com>
Date: Fri 28 Oct 2005 - 03:42:52 EST

On 10/26/05, Karin Lagesen <karin.lagesen@medisin.uio.no> wrote:
>
> I am trying to make horizontal violin plots. I have tried both vioplot
> and simple.violinplot, but both of them seem to not be willing to take
> the horizontal option. Is this correct, or am I just bungling it
> somehow?
>
> For instance, for vioplot (from the example shown, with the horizontal
> modification):
>
>
> > vioplot(bimodal,uniform,normal, horizontal=TRUE)
> Error in median(data) : need numeric data

One possibility is to use lattice instead, see e.g.

library(lattice)
example(panel.violin)

HTH,
Deepayan



R-help@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 Received on Fri Oct 28 04:32:53 2005

This archive was generated by hypermail 2.1.8 : Fri 28 Oct 2005 - 06:18:32 EST