Re: [R] horizontal violin plots?

2005-10-27 Thread Deepayan Sarkar
On 10/26/05, Karin Lagesen [EMAIL PROTECTED] 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


[R] horizontal violin plots?

2005-10-26 Thread Karin Lagesen

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
 

Karin
-- 
Karin Lagesen, PhD student
[EMAIL PROTECTED]
http://www.cmbn.no/rognes/

__
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


Re: [R] horizontal violin plots?

2005-10-26 Thread Romain Francois
Le 26.10.2005 14:52, Karin Lagesen a écrit :

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
  


Karin
  

Hello Karin,

the vioplot package only contains one function : vioplot of about only 
150 lines.
It won't be hard to look at that code and add an argument horizontal 
yourself. You just have to replace x by y and vice versa in all the 
lines, rect, ... calls. Maybe you can contribute it afterwards.

Romain

-- 
visit the R Graph Gallery : http://addictedtor.free.fr/graphiques
+---+
| Romain FRANCOIS - http://francoisromain.free.fr   |
| Doctorant INRIA Futurs / EDF  |
+---+

__
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