I have clustered boxplots with a column panel variable. I would like to put a different horizontal reference line on each panel. Is there a way to do this either when creating the graph or in the chart editor? Martha Hewett | Director of Research 612.335.5865 (p) | 612.839.2358 (c) | 612.335.5888 (f) Center for Energy and Environment | Minnesota's Energy Experts 212 3rd Avenue North, Suite 560, Minneapolis, MN 55401 |
Can you be more specific about the chart—is the horizontal reference line arbitrary? Are the panels determined by some categorical variable? Do you have the syntax that generated the chart? From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Martha Hewett
|
Hopefully this will be enough specifics, since I can't attach the graphs themselves. I generated the graphs with the chart builder. The syntax is: SORT CASES BY Compound. SPLIT FILE LAYERED BY Compound. * Chart Builder. GGRAPH /GRAPHDATASET NAME="graphdataset" VARIABLES=SP_NS_B Area_ovr_Quin Chromatogram GC_NPD_source MISSING=LISTWISE REPORTMISSING=NO /GRAPHSPEC SOURCE=INLINE. BEGIN GPL SOURCE: s=userSource(id("graphdataset")) DATA: SP_NS_B=col(source(s), name("SP_NS_B"), unit.category()) DATA: Area_ovr_Quin=col(source(s), name("Area_ovr_Quin")) DATA: Chromatogram=col(source(s), name("Chromatogram"), unit.category()) DATA: GC_NPD_source=col(source(s), name("GC_NPD_source"), unit.category()) GUIDE: axis(dim(1), label("SP_NS_B")) GUIDE: axis(dim(2), label("Area_ovr_Quin")) GUIDE: axis(dim(3), label("GC_NPD_source"), opposite()) SCALE: linear(dim(2), include(0)) ELEMENT: schema(position(bin.quantile.letter(SP_NS_B*Area_ovr_Quin*GC_NPD_source)), label(Chromatogram)) So, the y axis is the area from the chromatogram for the compound in question, divided by the area of the internal reference standard, quinoline. That's the variable "Area_over_Quin", continuous (scale). Each panel has 3 box-and-whisker elements, one for blanks, one for smoking-permitted spaces, and one for non-smoking spaces (variable "SP_NS_B", categorical). There is a separate panel for each change of "source," i.e. the bead used in GC-NPD, because they each perform differently. I want to put a line on each panel corresponding to the calculated limit of detection for samples run with that particular bead, for that particular compound. So it isn't arbitrary. I have 11 compounds (split file by compounds) and six sources. For each compound I have a six panel graph, and would like to put a horizontal line at a different position on each of the six panels. It may not be possible. I'm just hoping not to have to work with 66 separate graphs if I can. Martha Hewett | Director of Research 612.335.5865 (p) | 612.839.2358 (c) | 612.335.5888 (f) Center for Energy and Environment | Minnesota's Energy Experts 212 3rd Avenue North, Suite 560, Minneapolis, MN 55401
Can you be more specific about the chart—is the horizontal reference line arbitrary? Are the panels determined by some categorical variable? Do you have the syntax that generated the chart? From: SPSSX(r) Discussion [[hidden email]] On Behalf Of Martha Hewett Sent: Thursday, September 29, 2011 10:17 AM To: [hidden email] Subject: Is there a way to put different reference lines in each panel of paneled boxplots? I have clustered boxplots with a column panel variable. I would like to put a different horizontal reference line on each panel. Is there a way to do this either when creating the graph or in the chart editor? Martha Hewett | Director of Research 612.335.5865 (p) | 612.839.2358 (c) | 612.335.5888 (f) Center for Energy and Environment | Minnesota's Energy Experts 212 3rd Avenue North, Suite 560, Minneapolis, MN 55401 |
Free forum by Nabble | Edit this page |