s-news
[Top] [All Lists]

boxplot colors

To: s-news@lists.biostat.wustl.edu
Subject: boxplot colors
From: Henrik Parn <henrik.parn@bio.ntnu.no>
Date: Tue, 08 Nov 2005 15:45:21 +0100
Organization: NTNU
Reply-to: henrik.parn@bio.ntnu.no
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910
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)
************************


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