Does boxplot(as.data.frame(final)) do what you want?
--Adam
On Mon, 2 Feb 2009, Vemuri, Aparna wrote:
Dear R users,
I have a matrix "final" which looks like this:
final
oSO4 oNO3 mSO4 mNO3
[1,] 3.3728 0.2110 1.9517421 1.01883602
[2,] 0.8249 0.0697 1.5970292 0.113687
ldlife Service
California, USA
--- On Mon, 2/2/09, Vemuri, Aparna wrote:
> From: Vemuri, Aparna
> Subject: [R] Boxplots by variable
> To: r-help@r-project.org
> Date: Monday, February 2, 2009, 4:19 PM
> Dear R users,
>
> I have a matrix "final" which looks
Check out ggplot2:
http://had.co.nz/ggplot2
Particularly:
http://had.co.nz/ggplot2/geom_boxplot.html
Looks like you'll have to melt your data to long format first though,
here's a tutorial:
http://www.statmethods.net/management/reshape.html
On Mon, Feb 2, 2009 at 8:19 PM, Vemuri, Aparna wrote:
Dear R users,
I have a matrix "final" which looks like this:
final
oSO4 oNO3 mSO4 mNO3
[1,] 3.3728 0.2110 1.9517421 1.01883602
[2,] 0.8249 0.0697 1.5970292 0.11368781
[3,] 0.2636 0.1004 0.6012445 0.24356332
[4,] 8.0072 0.3443 6.1016998 3.63207149
[5,] 13.5079 0
4 matches
Mail list logo