Reversing axis - syntax?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Reversing axis - syntax?

annet
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Reversing axis - syntax?

Jon K Peck
Just add the reverse call to the SCALE statement.  Like this:
  SCALE: cat(aesthetic(aesthetic.color.exterior), include(".00", "1.00"), reverse())

HTH,

Jon Peck
Senior Software Engineer, IBM
[hidden email]
new phone: 720-342-5621




From:        annet <[hidden email]>
To:        [hidden email]
Date:        05/18/2011 05:51 AM
Subject:        [SPSSX-L] Reversing axis - syntax?
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




Hi,

im trying to create a scatterplot to display EEG data and would like to ask
if anyone knows how to reverse/invert an axis in a chart in SPSS 16. I would
need for positive values (e.g. 2) to be on the left and for the negative
values (e.g. -4) to be on the right side of the x-axis.
I have been trying to find a solution for this and apparently there is a
"reverse()" command that can be put into the syntax somewhere. I, however,
am not sure where exactly this needs to go and what the command needs to be
specifically.

I have already created the scatterplot for the data with the x-axis in the
conventional format and have added the syntax to this message. Does anyone
have an idea about how to change this syntax so that the values on the
x-axis appear in reversed order?

Thank you very much for your help!

Annet

* Chart Builder.
GGRAPH
 /GRAPHDATASET NAME="graphdataset" VARIABLES=F3F4average400500
Zahlenspanne_vor_Roh Diagnose MISSING=LISTWISE REPORTMISSING=NO
 /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
 DATA: F3F4average400500=col(source(s), name("F3F4average400500"))
 DATA: Zahlenspanne_vor_Roh=col(source(s), name("Zahlenspanne_vor_Roh"))
 DATA: Diagnose=col(source(s), name("Diagnose"), unit.category())
 GUIDE: axis(dim(1), label("F3F4average400500"))
 GUIDE: axis(dim(2), label("Zahlenspanne_vor_Roh"))
 GUIDE: legend(aesthetic(aesthetic.color.exterior), label("Diagnose"))
 SCALE: cat(aesthetic(aesthetic.color.exterior), include(".00", "1.00"))
 ELEMENT: point(position(F3F4average400500*Zahlenspanne_vor_Roh),
color.exterior(Diagnose))
END GPL.


--
View this message in context:
http://spssx-discussion.1045642.n5.nabble.com/Reversing-axis-syntax-tp4403334p4403334.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD