R help,
How can I plot the below data table by Data ~ Site and group by Grinder and
Equip Id
so I get a chart like this Excel version? I have tried coplot with little
success and lattice
makes a pretty good chart like I want, but I am using the DCOM so it does not
display
correctly. I would like to make this using the base library if possible.
<<...OLE_Obj...>>
DATA TABLE
BATCH EQUIPID MEAN RANGE GRINDER SITE DATA
1 1010001 8 2250.073 461.01 GRD001 LOC001 2429.86
2 1010001 8 2250.073 461.01 GRD001 LOC002 2300.81
3 1010001 8 2250.073 461.01 GRD001 LOC003 2327.50
4 1010001 8 2250.073 461.01 GRD001 LOC004 2318.72
5 1010001 8 2250.073 461.01 GRD001 LOC005 2363.11
6 1010001 8 2250.073 461.01 GRD001 LOC006 2413.53
7 1010001 8 2250.073 461.01 GRD001 LOC007 2586.55
8 1010001 8 2250.073 461.01 GRD002 LOC001 2252.66
9 1010001 8 2250.073 461.01 GRD002 LOC002 2136.54
10 1010001 8 2250.073 461.01 GRD002 LOC003 2139.90
11 1010001 8 2250.073 461.01 GRD002 LOC004 2160.41
12 1010001 8 2250.073 461.01 GRD002 LOC005 2160.30
13 1010001 8 2250.073 461.01 GRD002 LOC006 2202.80
14 1010001 8 2250.073 461.01 GRD002 LOC007 2301.19
15 1010001 8 2250.073 461.01 GRD003 LOC001 2224.50
16 1010001 8 2250.073 461.01 GRD003 LOC002 2132.33
17 1010001 8 2250.073 461.01 GRD003 LOC003 2125.54
18 1010001 8 2250.073 461.01 GRD003 LOC004 2145.55
19 1010001 8 2250.073 461.01 GRD003 LOC005 2140.55
20 1010001 8 2250.073 461.01 GRD003 LOC006 2159.47
21 1010001 8 2250.073 461.01 GRD003 LOC007 2229.72
22 1010001 9 2229.146 460.00 GRD001 LOC001 2278.88
23 1010001 9 2229.146 460.00 GRD001 LOC002 2303.24
24 1010001 9 2229.146 460.00 GRD001 LOC003 2342.55
25 1010001 9 2229.146 460.00 GRD001 LOC004 2226.61
26 1010001 9 2229.146 460.00 GRD001 LOC005 2577.06
27 1010001 9 2229.146 460.00 GRD001 LOC006 2301.44
28 1010001 9 2229.146 460.00 GRD001 LOC007 2211.39
29 1010001 9 2229.146 460.00 GRD002 LOC001 2152.65
30 1010001 9 2229.146 460.00 GRD002 LOC002 2272.51
31 1010001 9 2229.146 460.00 GRD002 LOC003 2219.08
32 1010001 9 2229.146 460.00 GRD002 LOC004 2152.11
33 1010001 9 2229.146 460.00 GRD002 LOC005 2321.38
34 1010001 9 2229.146 460.00 GRD002 LOC006 2178.04
35 1010001 9 2229.146 460.00 GRD002 LOC007 2175.39
36 1010001 9 2229.146 460.00 GRD003 LOC001 2120.77
37 1010001 9 2229.146 460.00 GRD003 LOC002 2220.48
38 1010001 9 2229.146 460.00 GRD003 LOC003 2151.57
39 1010001 9 2229.146 460.00 GRD003 LOC004 2117.06
40 1010001 9 2229.146 460.00 GRD003 LOC005 2219.41
41 1010001 9 2229.146 460.00 GRD003 LOC006 2131.36
42 1010001 9 2229.146 460.00 GRD003 LOC007 2139.09
Mike
>>>>> "mhoward" == mhoward <mhoward at micron.com> writes:> R help, How can I plot the below data table by Data ~ Site > and group by Grinder and Equip Id so I get a chart like > this Excel version? I have tried coplot with little success > and lattice makes a pretty good chart like I want, but I am > using the DCOM so it does not display correctly. I would > like to make this using the base library if possible. > <<...OLE_Obj...>> Your excel plot did not come along with your message, so I'm not quite sure what you're looking for. I won't let that stop me from suggesting something though! I know you've said lattice is not working for you, but I still recommend it - something like df <- read.table('tmp.dat',header=T) dotplot(SITE~DATA|GRINDER*EQUIPID, data=df) Other wise you can use dotchart, which is in the base library. Try something like this: dotchart(tapply(df$DATA, list(df$SITE,paste(df$GRINDER,df$EQUIPID)), mean)) Mike -- Michael A. Miller mmiller3 at iupui.edu Imaging Sciences, Department of Radiology, IU School of Medicine