s-news
[Top] [All Lists]

Re: boxplot colors

To: <s-news@lists.biostat.wustl.edu>
Subject: Re: boxplot colors
From: "MARK LEEDS" <markleeds@verizon.net>
Date: Tue, 08 Nov 2005 07:44:02 -0800
References: <4370BA01.1070808@bio.ntnu.no>
does anyone know if there
is a function in Splus called
cov2cor. i don't have Splus
at the moment so I can't check it.

I knw the function exists in R ( and can also be
written fairly easily ) but
I am grading an Splus exam as a favor to someone
and the test taker used cov2cor and I need
to know if that's a valid function in Splus. Thanks.

                                        Mark

----- Original Message ----- From: "Henrik Parn" <henrik.parn@bio.ntnu.no>
To: <s-news@lists.biostat.wustl.edu>
Sent: Tuesday, November 08, 2005 6:45 AM
Subject: [S] boxplot colors


Dear S-plus users,

I would like to create a boxplot with several boxes where I can specify the colors of inviduals boxes.

I have read the posting 'Summary of Specifying box colors in boxplot' by Peter Sherer. I am not sure if the proposed script, which is based on boxplot(split(y.dat,x.dat)), suits the way my data is arranged. I pick two (or more) vectors of data from two (or more) different data sets.

An example could start out from this:
I have two data sets, data1 and data2, and I want to plot two variables Y1 and Y2, from each data set.
I would like to specify the color (gray scale) of each box.
For example, different colors for different data sets, different colors for different variables or completely manually on each box.


Any suggestions are appreciated!

Cheers,

Henrik
S-Plus 6.2, Win XP

--
************************
Henrik Pärn
Department of Biology
NTNU
7491 Trondheim
Norway

+47 735 96282 (office)
+47 909 89 255 (mobile)
+47 735 96100 (fax)
************************

--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news




<Prev in Thread] Current Thread [Next in Thread>