|
Greetings, I
am writing some ggraph/gpl code and I was wondering how to format the values of
the axis labels. For example, by default, the values on the y-axis are
4.00, 5.00, 6.00, etc. I would rather have 4, 5, 6. Does anyone
know the gpl syntax to do this? I know how to do this with the graph
editor once I make the graph, but I would really rather include this in my
syntax. Here
is my syntax so far: GGRAPH
/GRAPHDATASET NAME="graphdataset" VARIABLES=meanses ebintrcp
/GRAPHSPEC SOURCE=INLINE. BEGIN
GPL
SOURCE: s=userSource(id("graphdataset"))
DATA: meanses=col(source(s), name("meanses"))
DATA: ebintrcp=col(source(s), name("ebintrcp"))
GUIDE: axis(dim(1), label("meanses"))
GUIDE: axis(dim(2), label("ebintrcp")) SCALE:
linear( dim( 1 ), min(-1.5), max(1) ) SCALE:
linear( dim( 2 ), min(-4), max(6) )
ELEMENT: point(position(meanses*ebintrcp)) END
GPL. Thank
you for any assistance! Best, Christine Wells,
Ph.D. |
|
Generally speaking, GPL formats
scalar values using the print format defined for them. So what is the format of
variables meanses? From: SPSSX(r) Discussion
[mailto:[hidden email]] On Behalf Of Wells, Christine Greetings, I
am writing some ggraph/gpl code and I was wondering how to format the values of
the axis labels. For example, by default, the values on the y-axis are
4.00, 5.00, 6.00, etc. I would rather have 4, 5, 6. Does anyone
know the gpl syntax to do this? I know how to do this with the graph
editor once I make the graph, but I would really rather include this in my
syntax. Here
is my syntax so far: GGRAPH
/GRAPHDATASET NAME="graphdataset" VARIABLES=meanses ebintrcp
/GRAPHSPEC SOURCE=INLINE. BEGIN
GPL
SOURCE: s=userSource(id("graphdataset"))
DATA: meanses=col(source(s), name("meanses"))
DATA: ebintrcp=col(source(s), name("ebintrcp"))
GUIDE: axis(dim(1), label("meanses"))
GUIDE: axis(dim(2), label("ebintrcp")) SCALE:
linear( dim( 1 ), min(-1.5), max(1) ) SCALE:
linear( dim( 2 ), min(-4), max(6) )
ELEMENT: point(position(meanses*ebintrcp)) END
GPL. Thank
you for any assistance! Best, Christine Wells,
Ph.D. |
|
Thank
you – just the tip that I needed! Christine Wells,
Ph.D. From: SPSSX(r) Discussion
[mailto:[hidden email]] On Behalf Of ViAnn Beadle Generally speaking, GPL formats scalar
values using the print format defined for them. So what is the format of
variables meanses? From: SPSSX(r) Discussion
[mailto:[hidden email]] On Behalf Of Wells, Christine Greetings, I
am writing some ggraph/gpl code and I was wondering how to format the values of
the axis labels. For example, by default, the values on the y-axis are
4.00, 5.00, 6.00, etc. I would rather have 4, 5, 6. Does anyone
know the gpl syntax to do this? I know how to do this with the graph
editor once I make the graph, but I would really rather include this in my
syntax. Here
is my syntax so far: GGRAPH
/GRAPHDATASET NAME="graphdataset" VARIABLES=meanses ebintrcp
/GRAPHSPEC SOURCE=INLINE. BEGIN
GPL
SOURCE: s=userSource(id("graphdataset"))
DATA: meanses=col(source(s), name("meanses"))
DATA: ebintrcp=col(source(s), name("ebintrcp"))
GUIDE: axis(dim(1), label("meanses"))
GUIDE: axis(dim(2), label("ebintrcp")) SCALE:
linear( dim( 1 ), min(-1.5), max(1) ) SCALE:
linear( dim( 2 ), min(-4), max(6) )
ELEMENT: point(position(meanses*ebintrcp)) END
GPL. Thank
you for any assistance! Best, Christine Wells,
Ph.D. |
| Free forum by Nabble | Edit this page |
