GPL problems: Margin of axes, Label element, and Label position

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

GPL problems: Margin of axes, Label element, and Label position

la volta statistics
Hi All

I have a three problems with a GPL chart (data and syntax provided below) in
which
I want to compare three scores using SPSS 15.01.
- My first problem is that the second axis (dim(2)) has no margin,
that is, it is not set off by 5% as the other two axes (dim(1) and dim(3)).
I would like to have them all the same; with or without margins I don’t
mind.
- The second question is about the label in the ELEMENT statement.
The label for A-001 is masking the label A-002. I used the showAll function
that is supposed to display all labels, even if they overlap.
However, in my case it doesn't work. By the way: is there a possibility to
place the labels next to the first axis?
- The third problem is that the labels for the axes tow (dim(2)) and three
(dim(3))
are written upside down, the label for the first axis (dim(1))is written
from bottom to top. Is it possible to control that by syntax?

TIA

Christian

* Syntax example.

DATA LIST LIST /P01_pat(a5) Var1(F8.0) Var2(F8.0) Var3(F8.0) Med(F8.0).
BEGIN DATA
A-001 3 3 20 1
A-002 4 3 30 1
A-003 6 5 20 2
A-004 8 7 33 2
END DATA.

VAR LABEL Med "Treatment".
Val LAbel Med 1 "Verum"
              2 "Placebo".

GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES= Var1 Var2 Var3 Med P01_pat
MISSING=LISTWISE
  REPORTMISSING=NO
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
 DATA:  Var1 = col(source(s), name("Var1"))
 DATA:  Var2 = col(source(s), name("Var2"))
 DATA:  Var3 = col(source(s), name("Var3"))
 DATA:  Med  = col(source(s), name("Med"), unit.category())
 DATA:  P01_pat = col(source(s), name("P01_pat"), unit.category())
 TRANS: caseid   = index()
 COORD: parallel()
 GUIDE: axis(dim(1), label("Score 1"))
 GUIDE: axis(dim(2), label("Score 2"))
 GUIDE: axis(dim(3), label("Score 3"))
 SCALE: cat(aesthetic(aesthetic.color.interior), map(("1",color.red),
("2",color.blue)))
 GUIDE: legend(aesthetic(aesthetic.color), label("Treatment"))
 SCALE: Var1 = linear(dim(1), min(0), max(10),include(0, 10))
 SCALE: Var2 = linear(dim(2), min(0), max(10),include(0, 10))
 SCALE: Var3 = linear(dim(3), min(0), max(100),include(0, 100))
 ELEMENT: line(position(Var1*Var2*Var3),
            split(caseid), label(P01_pat, showAll()), color(Med),
            transparency(transparency."0.5"))
END GPL.



*******************************
la volta statistics
Christian Schmidhauser, Dr.phil.II
Weinbergstrasse 108
Ch-8006 Zürich
Tel: +41 (043) 233 98 01
Fax: +41 (043) 233 98 02
email: mailto:[hidden email]
internet: http://www.lavolta.ch/