upper and lower margins in GPL charts

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

upper and lower margins in GPL charts

la volta statistics

Hi all

 

I am trying to set the upper and lower margins on the scale of a combined Histogram / Boxplot Chart.

 

Is there a way to do this with syntax? I am using SPSS 15.

 

In the example below the margins of the Histogram are (by default) on 5%.

The Boxplot has by default no margins.

Therefore the boxplot is shifted slightly to the right in the combined chart.

 

Thanks in advance

Christian

 

 

 

GGRAPH
/GRAPHDATASET NAME="EmployeeData" VARIABLES= salary gender
/GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
SOURCE: s=userSource(id("EmployeeData"))
DATA: salary=col(source(s), name("salary"))
DATA: gender=col(source(s), name("gender"), unit.category())
GRAPH: begin(origin(15.0%, 10.0%), scale(70.0%, 70.0%))
COORD: rect(dim(1, 2))
GUIDE: axis(dim(1), label("Salary"))
GUIDE: axis(dim(3), label("Gender"))
ELEMENT: interval(position(summary.count(bin.rect(salary))),
color.interior(color.lightgrey))
GRAPH: end()
GRAPH: begin(origin(15.0%, 80.0%), scale(70.0%, 10.0%))
COORD: transpose()
GUIDE: axis(dim(1), ticks(null()))
GUIDE: axis(dim(2), null())
ELEMENT: schema(position(bin.quantile.letter(1*salary))),
color.interior(color.lightgrey))
GRAPH: end()
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:
[hidden email] 
Web:
www.lavolta.ch