Hello everyone,
I want to get a jitter scatter plot on SPSS for two ordinal variables. I use the Graph Fonction and then I paste the syntax and add "jitter" where needed.
When I run the graph, I received this message : error # 99. Command name: BEGIN GPL >This command is only valid immediately following the GGRAPH procedure. >Execution of this command stops.
Here's my syntax:
DATASET ACTIVATE Dataset1.
* Chart Builder.
GGRAPH
/GRAPHDATASET NAME="graphdataset" VARIABLES=V1 V2
MISSING=LISTWISE REPORTMISSING=NO
/GRAPHSPEC SOURCE=INLINE
/FITLINE TOTAL=NO.
BEGIN GPL
SOURCE: s=userSource(id("graphdataset"))
DATA: V1=col(source(s), name("V1"), unit.category())
DATA: V2=col(source(s), name("V2"), unit.category())
GUIDE: axis(dim(1), label("V1"))
GUIDE: axis(dim(2), label("V2"))
SCALE: cat(dim(1), include("0.00", "1.00", "2.00", "3.00"))
SCALE: cat(dim(2), include("0.00", "1.00"))
ELEMENT: point.jitter(position(V1*V2))
END GPL.
I notice that /FITLINE TOTAL=NO. is not an actual fonction, but when adding a "s" to FITLINE, it turns green, "TOTAL" turns red and "No". Running the syntax after this change does not do anything and I receive the same error message...
I just don't get it.
If anyone have thoughts it would be great. Your help would be greatly appreciated!
Cheers
------------------------------
Guillaume D
------------------------------
#SPSSStatistics