|
Here is my syntax:
GGRAPH
/GRAPHDATASET NAME="graphdataset"
VARIABLES=PkBCadj_FC PkUVadj_minus_PkBCadj SP_NS_C Toast_ONLY_TD_Rcd MISSING=LISTWISE
REPORTMISSING=NO
/GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
SOURCE: s=userSource(id("graphdataset"))
DATA: PkBCadj_FC=col(source(s),
name("PkBCadj_FC"))
DATA: PkUVadj_minus_PkBCadj=col(source(s),
name("PkUVadj_minus_PkBCadj"))
DATA: SP_NS_C=col(source(s),
name("SP_NS_C"), unit.category())
DATA: Toast_ONLY_TD_Rcd=col(source(s),
name("Toast_ONLY_TD_Rcd"), unit.category())
GUIDE: axis(dim(1), label("PkBCadj_FC"))
GUIDE: axis(dim(2), label("PkUVadj_minus_PkBCadj"))
GUIDE: axis(dim(4), label("Toast_ONLY_TD_Rcd"),
opposite())
GUIDE: legend(aesthetic(aesthetic.color.exterior),
label("SP_NS_C"))
SCALE: cat(dim(4), include("-3",
"-1", "1", "2", "5"))
ELEMENT: point(position(PkBCadj_FC*PkUVadj_minus_PkBCadj*1*Toast_ONLY_TD_Rcd),
color.exterior(SP_NS_C))
END GPL.
Even though I have specified that all
5 values of the categorical variable are to be included, in the statement
" SCALE: cat(dim(4),
include("-3", "-1", "1", "2", "5"))",
in fact only the categories that
have data show up. So a 5 panel graph only has 4 or 3 or 2 or sometimes
even 1 panel if the other panels have no data in them. From reading
the help it sure seems like it should work, but it doesn't. What
am I doing wrong?
Martha Hewett
|
Director of
Research | 612.335.5865
|
Center for Energy
and Environment
|
212 Third Avenue
North, Suite 560 | Minneapolis, MN 55401
|
(cell) 612.839.2358
| (fax) 612.335.5888 | www.mncee.org
|
----- Forwarded by Martha
Hewett/MnCEE on 11/30/2011 04:40 PM -----
From:
Martha Hewett/MnCEE
To:
[hidden email]
Date:
11/30/2011 04:13 PM
Subject:
Controlling
the appearance of a panel with no data in graphs with panel variables
I am producing graphs that have a column
panel variable, where the panel variable can take on 5 values. I
would like all the panels to appear, whether or not there are any values
that fall in a given panel. That would allow me to print one graph
below another and compare panels from graph to graph. Is there a
way to control graphing to force all panels to appear even if they are
empty?
Martha Hewett
|
Director of
Research | 612.335.5865
|
Center for Energy
and Environment
|
212 Third Avenue
North, Suite 560 | Minneapolis, MN 55401
|
(cell) 612.839.2358
| (fax) 612.335.5888 | www.mncee.org
|
|