Re: [R] Multiple grouping on the X axis.

2009-12-04 Thread Greg Snow
The boxplot function has an 'at' argument that you can use to specify where to 
plot the boxes, could you just use this to group the boxplots?

Or the lattice package can put each group into its own panel to show the 
grouping.

Hope this helps,

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111


> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
> project.org] On Behalf Of Munin
> Sent: Thursday, December 03, 2009 3:21 PM
> To: r-help@r-project.org
> Subject: Re: [R] Multiple grouping on the X axis.
> 
> 
> This looks like exactly what I was looking for, except I forgot to
> mention
> that they are looking for box-plots.  Any ideas on a package that can
> do the
> same kind of organization but with box-plots?
> 
> 
> Jim Lemon wrote:
> >
> > Hi Munin,
> > Look at hierobarp in the plotrix package. The current version doesn't
> > have the recently programmed option to pass a list of arrays with the
> > values, so if you want this capability, I will email the new code.
> >
> > Jim
> >
> > __
> > R-help@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.
> >
> >
> 
> --
> View this message in context: http://n4.nabble.com/Multiple-grouping-
> on-the-X-axis-tp932397p948056.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> __
> R-help@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.

__
R-help@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.


Re: [R] Multiple grouping on the X axis.

2009-12-03 Thread Munin

This looks like exactly what I was looking for, except I forgot to mention
that they are looking for box-plots.  Any ideas on a package that can do the
same kind of organization but with box-plots?


Jim Lemon wrote:
> 
> Hi Munin,
> Look at hierobarp in the plotrix package. The current version doesn't 
> have the recently programmed option to pass a list of arrays with the 
> values, so if you want this capability, I will email the new code.
> 
> Jim
> 
> __
> R-help@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.
> 
> 

-- 
View this message in context: 
http://n4.nabble.com/Multiple-grouping-on-the-X-axis-tp932397p948056.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.


Re: [R] Multiple grouping on the X axis.

2009-12-01 Thread Jim Lemon

On 12/02/2009 05:07 AM, Munin wrote:

I am trying to plot data with multiple logical and physical groups using
R.  Below is a sample of the kind of data I am working with and the desired
output.  We have a jmp script that can do the same thing, but at ~$200 a
year the licensing is counterproductive.  Thanks for any help.

Data input: Loaded from a CSV file.
Physical_1 Logical_1 Logical_2 Data_1 Data_2
x   Y   Z2  54   56
x   Y2 Z2  53   55
x   Y3 Z2  52   54
x2 Y   Z60   58
x2 Y2 Z59   57
x2 Y3 Z58   56
x3 Y   Z56   53
x3 Y2 Z55   52
x3 Y3 Z54   51
x4 Y   Z2  52   55
x4 Y2 Z2   51   54
x4 Y3 Z2   50   53


I need the graph to be grouped as follows:
-
|Y|Y2|Y3|Y|Y2|Y3|Y|Y2|Y3|Y|Y2|Y3|
-
| X|  X4  |  X2   |  X3  |
-
|   Z   |Z2 |
-

Again, any help would be appreciated.
   

Hi Munin,
Look at hierobarp in the plotrix package. The current version doesn't 
have the recently programmed option to pass a list of arrays with the 
values, so if you want this capability, I will email the new code.


Jim

__
R-help@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.


[R] Multiple grouping on the X axis.

2009-12-01 Thread Munin

   I am trying to plot data with multiple logical and physical groups using
R.  Below is a sample of the kind of data I am working with and the desired
output.  We have a jmp script that can do the same thing, but at ~$200 a
year the licensing is counterproductive.  Thanks for any help.

Data input: Loaded from a CSV file.
Physical_1 Logical_1 Logical_2 Data_1 Data_2
x   Y   Z2  54   56
x   Y2 Z2  53   55
x   Y3 Z2  52   54
x2 Y   Z60   58
x2 Y2 Z59   57
x2 Y3 Z58   56
x3 Y   Z56   53
x3 Y2 Z55   52
x3 Y3 Z54   51
x4 Y   Z2  52   55
x4 Y2 Z2   51   54
x4 Y3 Z2   50   53


I need the graph to be grouped as follows:
-
|Y|Y2|Y3|Y|Y2|Y3|Y|Y2|Y3|Y|Y2|Y3|
-
| X|  X4  |  X2   |  X3  |
-
|   Z   |Z2 |
-

   Again, any help would be appreciated.
-- 
View this message in context: 
http://n4.nabble.com/Multiple-grouping-on-the-X-axis-tp932397p932397.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@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.