[R] Multiple grouping on the X axis.
Jim Lemon
jim at bitwrit.com.au
Wed Dec 2 08:33:17 CET 2009
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 Z 60 58
> x2 Y2 Z 59 57
> x2 Y3 Z 58 56
> x3 Y Z 56 53
> x3 Y2 Z 55 52
> x3 Y3 Z 54 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
More information about the R-help
mailing list