[R] Comples Boxplots in R . Resources

R. Michael Weylandt michael.weylandt at gmail.com
Fri Mar 23 14:08:53 CET 2012


Take a look at

example(boxplot)
and
example(bxp)

I think the last one for boxplot (with the guinea pig teeth!) will
work for you and I believe you can manipulate the linetype the same
way they do color there.  Though looking at your data, it seems
problematic that your values are so different....if that's problematic
of your real data, you'll need to scale them to match or use multiple
facets / panels as the examples demonstrate.

Michael

On Fri, Mar 23, 2012 at 7:05 AM, Alaios <alaios at yahoo.com> wrote:
> Dear all,
> I want to have a box plot for 7 datasets I have. The different here is that each of these 7 data sets has two status . The on and off.
>
> So I give a small example below with 2 data sets only
>
> List of 2
>  $ :List of 2
>   ..$ : num [1:3502, 1] 0 0 0 0 0 0 0 0 0 0 ... # On Status
>   ..$ : num [1:3502, 1] 102884 102884 102884 102884 102884 ... # Off status
>  $ :List of 2
>   ..$ : num [1:3502, 1] 0 0 0 0 0 0 0 0 0 0 ... # On Status
>   ..$ : num [1:3502, 1] 102884 102884 102884 102884 102884 ... # Off status
>
>
> I would like to print all these information in a same boxplot where in each tick instead of having one box, I want it to have two boxes.. one for the on status and one for the off status. Even better it would be great if the on boxes will be plotted by solid lines and the off boxes with dashed lines.
>
> I understand that this is a bit complex, so do you know if there are few references to read how I can do that in R?
>
>  I would like to thank you in advance for your help
>
> B.R
> Alex
>
>        [[alternative HTML version deleted]]
>
>
> ______________________________________________
> 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.
>



More information about the R-help mailing list