[R] left-to-right series of box and whisker plots from a csv file

David Winsemius dwinsemius at comcast.net
Sat Apr 24 22:44:57 CEST 2010


On Apr 24, 2010, at 3:53 PM, Albert Vilella wrote:

> Hi,
>
> I've got a csv file with scores like this:
> 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,32,38,40,20,40,26,40,30,40,5,5,13,12,40,40,3,33,29,23,2,24,9,15,4,21,16,5,26,8,8,18
> 40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,40,32,40,40,30,40,40,37,34,40,36,13,40,13,40,5,40,8,29,5,15,34,5,22,14,20
> 40,40,40,40,40,40,40,40,40,12,40,40,40,20,40,40,17,40,40,40,40,40,11,40,40,29,12,40,1,13,21,10,14,24,9,13,18,28,19,12,15,3,5,3,8,2
> [...]
>
> For a given file, the number of columns can vary from a few dozen to a
> few hundreds, and I would like a script that
> draws a series of box and whiskers or violins left to right for every
> column in a single plot.
>
> How can I do that in a self-contained R script that can be called with
> the input file as argument?
>
> Cheers,
>
> Albert.
>
> ______________________________________________
> 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.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list