Message-ID: <47C97E59.8090207@stamats.de>
Date: 2008-03-01T16:03:37Z
From: Matthias Kohl
Subject: multiple boxplots using boxplot
In-Reply-To: <B2B76AE1-D28E-4F29-89C9-E4CD6A5303CC@gen.bio.uni-giessen.de>
Hi Marek,
use a list instead of a data.frame; e.g.
boxplot(list(x = rnorm(10), y = rnorm(20)))
hth,
Matthias
Marek Bartkuhn wrote:
> Hi,
>
> I have data in 3 vectors a,b and c looking like
>
> eg a: 1.2 3.4 1.4 ......
>
>
> I like to have the data from each vector as a boxplot, but the 3
> boxplots within one graph.
>
> One example is the first graph at
>
> http://www.statmethods.net/graphs/boxplot.html
>
> Unfortunately I do not really understand the corresponding
> description. The vectors are of different length, therefore R
> complains when I try to build a data.frame of the 3 vectors:
>
> arguments imply differing number of rows: 6175, 20, 190
>
> What do I have to do?
>
> Marek
>
> ______________________________________________
> 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.
>
--
Dr. Matthias Kohl
www.stamats.de