Chart builder

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

Chart builder

behnaz shirazi-2
Dear all:

I am new with spss and I wonder if I want to have 2 Legend variable in chart
builder what should I do?
As far as I played with IGRPH it's quit possible but I couldn't manage it
with chart builder and as I trying to keep consistency I prefer to have all
charts with chart builder?


Any suggestion

Thank you
Behnaz Shirazi

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.com/
Reply | Threaded
Open this post in threaded view
|

AW: Chart builder

la volta statistics
Hi Behnaz
Here an example using the 'employee data.sav' file.
The critical point is to use 'color(gender)' in the line that starts with
the ELEMENT statement.
Sometimes you might want to avoid the legend. Then you could for example
replace the line
 GUIDE: legend(aesthetic(aesthetic.color.interior), label("Gender"))
with
 GUIDE: legend(aesthetic(aesthetic.color), null())
That keeps the two colors for male and female in the bars, but omits the
legend.

In the help files on your SPSS-cd you should find the GPL Reference Guide
(GPL Reference Guide.pdf) with many examples for coding charts with GPL.

Hope that helps

Christian




GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=jobcat gender MISSING=LISTWISE
REPORTMISSING=NO
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
 DATA: jobcat=col(source(s), name("jobcat"), unit.category())
 DATA: gender=col(source(s), name("gender"), unit.category())
 GUIDE: axis(dim(1), label("Employment Category"))
 GUIDE: axis(dim(2), label("Count"))
 GUIDE: legend(aesthetic(aesthetic.color.interior), label("Gender"))
 SCALE: cat(dim(1), include("1", "2", "3"))
 SCALE: linear(dim(2), include(0))
 SCALE: cat(aesthetic(aesthetic.color.interior), include("f", "m"))
 ELEMENT: interval.stack(position(summary.count(jobcat))),
shape.interior(shape.square), color(gender))
END GPL.



-----Ursprüngliche Nachricht-----
Von: SPSSX(r) Discussion [mailto:[hidden email]]Im Auftrag von
behnaz shirazi
Gesendet: Donnerstag, 17. Mai 2007 17:19
An: [hidden email]
Betreff: Chart builder


Dear all:

I am new with spss and I wonder if I want to have 2 Legend variable in chart
builder what should I do?
As far as I played with IGRPH it's quit possible but I couldn't manage it
with chart builder and as I trying to keep consistency I prefer to have all
charts with chart builder?


Any suggestion

Thank you
Behnaz Shirazi

Don't just search. Find. Check out the new MSN Search!
http://search.msn.com/
Reply | Threaded
Open this post in threaded view
|

Re: AW: Chart builder

behnaz shirazi-2
HI Christian
Thank you so much for your reply .Just before I go through the test can I
ask you a question?

Is this for 2 Legend ? I mean I don't have any problem to have gender
variable as "Legend" .In fact
I have another categorical variable named "distinct"
(Province,Region,Agency) which I want it as my second legend.
With IGRAPH it is possoble becasue I can have one legend based on color and
another one based on style.But I didn't find something like this in chart
builder.

Thank you
Behnaz


>From: la volta statistics <[hidden email]>
>Reply-To: la volta statistics <[hidden email]>
>To: [hidden email]
>Subject: AW: Chart builder
>Date: Fri, 18 May 2007 10:07:15 +0200
>
>Hi Behnaz
>Here an example using the 'employee data.sav' file.
>The critical point is to use 'color(gender)' in the line that starts with
>the ELEMENT statement.
>Sometimes you might want to avoid the legend. Then you could for example
>replace the line
>  GUIDE: legend(aesthetic(aesthetic.color.interior), label("Gender"))
>with
>  GUIDE: legend(aesthetic(aesthetic.color), null())
>That keeps the two colors for male and female in the bars, but omits the
>legend.
>
>In the help files on your SPSS-cd you should find the GPL Reference Guide
>(GPL Reference Guide.pdf) with many examples for coding charts with GPL.
>
>Hope that helps
>
>Christian
>
>
>
>
>GGRAPH
>   /GRAPHDATASET NAME="graphdataset" VARIABLES=jobcat gender
>MISSING=LISTWISE
>REPORTMISSING=NO
>   /GRAPHSPEC SOURCE=INLINE.
>BEGIN GPL
>  SOURCE: s=userSource(id("graphdataset"))
>  DATA: jobcat=col(source(s), name("jobcat"), unit.category())
>  DATA: gender=col(source(s), name("gender"), unit.category())
>  GUIDE: axis(dim(1), label("Employment Category"))
>  GUIDE: axis(dim(2), label("Count"))
>  GUIDE: legend(aesthetic(aesthetic.color.interior), label("Gender"))
>  SCALE: cat(dim(1), include("1", "2", "3"))
>  SCALE: linear(dim(2), include(0))
>  SCALE: cat(aesthetic(aesthetic.color.interior), include("f", "m"))
>  ELEMENT: interval.stack(position(summary.count(jobcat))),
>shape.interior(shape.square), color(gender))
>END GPL.
>
>
>
>-----Ursprüngliche Nachricht-----
>Von: SPSSX(r) Discussion [mailto:[hidden email]]Im Auftrag von
>behnaz shirazi
>Gesendet: Donnerstag, 17. Mai 2007 17:19
>An: [hidden email]
>Betreff: Chart builder
>
>
>Dear all:
>
>I am new with spss and I wonder if I want to have 2 Legend variable in
>chart
>builder what should I do?
>As far as I played with IGRPH it's quit possible but I couldn't manage it
>with chart builder and as I trying to keep consistency I prefer to have all
>charts with chart builder?
>
>
>Any suggestion
>
>Thank you
>Behnaz Shirazi
>
>Don't just search. Find. Check out the new MSN Search!
>http://search.msn.com/

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Reply | Threaded
Open this post in threaded view
|

AW: AW: Chart builder

la volta statistics
Hi Behnaz
there is an example in the GPL Reference Guide (if I understand you
correctly).
Again with the  'employee data.sav' file the syntax goes as follows:

Hope that helps
Christian



GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES= minority salary  jobcat
gender MISSING=LISTWISE REPORTMISSING=NO
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
 SOURCE: s=userSource(id("graphdataset"))
DATA: jobcat = col(source(s), name("jobcat"), unit.category())
DATA: gender = col(source(s), name("gender"), unit.category())
DATA: minority = col(source(s), name("minority"), unit.category())
DATA: salary = col(source(s), name("salary"))
COORD: rect(dim(1, 2), cluster(3, 0))
SCALE: linear(dim(2), include(0))
GUIDE: axis(dim(2), label("Sum Salary"))
GUIDE: axis(dim(3), label("Job Category"))
GUIDE: legend(aesthetic(aesthetic.color.interior), label("Gender"))
GUIDE: legend(aesthetic(aesthetic.texture.pattern.interior),
 label("Minority Classification"))
ELEMENT: interval.stack(position(summary.sum(gender*salary*jobcat)),
 color.exterior(color.black),
 color.interior(gender), texture.pattern.interior(minority))
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/

-----Ursprüngliche Nachricht-----
Von: behnaz shirazi [mailto:[hidden email]]
Gesendet: Freitag, 18. Mai 2007 17:24
An: [hidden email]; [hidden email]
Betreff: RE: AW: Chart builder


HI Christian
Thank you so much for your reply .Just before I go through the test can I
ask you a question?

Is this for 2 Legend ? I mean I don't have any problem to have gender
variable as "Legend" .In fact
I have another categorical variable named "distinct"
(Province,Region,Agency) which I want it as my second legend.
With IGRAPH it is possoble becasue I can have one legend based on color and
another one based on style.But I didn't find something like this in chart
builder.

Thank you
Behnaz


>From: la volta statistics <[hidden email]>
>Reply-To: la volta statistics <[hidden email]>
>To: [hidden email]
>Subject: AW: Chart builder
>Date: Fri, 18 May 2007 10:07:15 +0200
>
>Hi Behnaz
>Here an example using the 'employee data.sav' file.
>The critical point is to use 'color(gender)' in the line that starts with
>the ELEMENT statement.
>Sometimes you might want to avoid the legend. Then you could for example
>replace the line
>  GUIDE: legend(aesthetic(aesthetic.color.interior), label("Gender"))
>with
>  GUIDE: legend(aesthetic(aesthetic.color), null())
>That keeps the two colors for male and female in the bars, but omits the
>legend.
>
>In the help files on your SPSS-cd you should find the GPL Reference Guide
>(GPL Reference Guide.pdf) with many examples for coding charts with GPL.
>
>Hope that helps
>
>Christian
>
>
>
>
>GGRAPH
>   /GRAPHDATASET NAME="graphdataset" VARIABLES=jobcat gender
>MISSING=LISTWISE
>REPORTMISSING=NO
>   /GRAPHSPEC SOURCE=INLINE.
>BEGIN GPL
>  SOURCE: s=userSource(id("graphdataset"))
>  DATA: jobcat=col(source(s), name("jobcat"), unit.category())
>  DATA: gender=col(source(s), name("gender"), unit.category())
>  GUIDE: axis(dim(1), label("Employment Category"))
>  GUIDE: axis(dim(2), label("Count"))
>  GUIDE: legend(aesthetic(aesthetic.color.interior), label("Gender"))
>  SCALE: cat(dim(1), include("1", "2", "3"))
>  SCALE: linear(dim(2), include(0))
>  SCALE: cat(aesthetic(aesthetic.color.interior), include("f", "m"))
>  ELEMENT: interval.stack(position(summary.count(jobcat))),
>shape.interior(shape.square), color(gender))
>END GPL.
>
>
>
>-----Ursprüngliche Nachricht-----
>Von: SPSSX(r) Discussion [mailto:[hidden email]]Im Auftrag von
>behnaz shirazi
>Gesendet: Donnerstag, 17. Mai 2007 17:19
>An: [hidden email]
>Betreff: Chart builder
>
>
>Dear all:
>
>I am new with spss and I wonder if I want to have 2 Legend variable in
>chart
>builder what should I do?
>As far as I played with IGRPH it's quit possible but I couldn't manage it
>with chart builder and as I trying to keep consistency I prefer to have all
>charts with chart builder?
>
>
>Any suggestion
>
>Thank you
>Behnaz Shirazi
>
>Don't just search. Find. Check out the new MSN Search!
>http://search.msn.com/

Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Reply | Threaded
Open this post in threaded view
|

Re: AW: AW: Chart builder

behnaz shirazi-2
Thank you very much Christian.
I will test it and I will tell you the result.

Have a good weekend
Behnaz

>From: la volta statistics <[hidden email]>
>Reply-To: la volta statistics <[hidden email]>
>To: [hidden email]
>Subject: AW: AW: Chart builder
>Date: Fri, 18 May 2007 18:55:46 +0200
>
>Hi Behnaz
>there is an example in the GPL Reference Guide (if I understand you
>correctly).
>Again with the  'employee data.sav' file the syntax goes as follows:
>
>Hope that helps
>Christian
>
>
>
>GGRAPH
>   /GRAPHDATASET NAME="graphdataset" VARIABLES= minority salary  jobcat
>gender MISSING=LISTWISE REPORTMISSING=NO
>   /GRAPHSPEC SOURCE=INLINE.
>BEGIN GPL
>  SOURCE: s=userSource(id("graphdataset"))
>DATA: jobcat = col(source(s), name("jobcat"), unit.category())
>DATA: gender = col(source(s), name("gender"), unit.category())
>DATA: minority = col(source(s), name("minority"), unit.category())
>DATA: salary = col(source(s), name("salary"))
>COORD: rect(dim(1, 2), cluster(3, 0))
>SCALE: linear(dim(2), include(0))
>GUIDE: axis(dim(2), label("Sum Salary"))
>GUIDE: axis(dim(3), label("Job Category"))
>GUIDE: legend(aesthetic(aesthetic.color.interior), label("Gender"))
>GUIDE: legend(aesthetic(aesthetic.texture.pattern.interior),
>  label("Minority Classification"))
>ELEMENT: interval.stack(position(summary.sum(gender*salary*jobcat)),
>  color.exterior(color.black),
>  color.interior(gender), texture.pattern.interior(minority))
>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/
>
>-----Ursprüngliche Nachricht-----
>Von: behnaz shirazi [mailto:[hidden email]]
>Gesendet: Freitag, 18. Mai 2007 17:24
>An: [hidden email]; [hidden email]
>Betreff: RE: AW: Chart builder
>
>
>HI Christian
>Thank you so much for your reply .Just before I go through the test can I
>ask you a question?
>
>Is this for 2 Legend ? I mean I don't have any problem to have gender
>variable as "Legend" .In fact
>I have another categorical variable named "distinct"
>(Province,Region,Agency) which I want it as my second legend.
>With IGRAPH it is possoble becasue I can have one legend based on color and
>another one based on style.But I didn't find something like this in chart
>builder.
>
>Thank you
>Behnaz
>
>
> >From: la volta statistics <[hidden email]>
> >Reply-To: la volta statistics <[hidden email]>
> >To: [hidden email]
> >Subject: AW: Chart builder
> >Date: Fri, 18 May 2007 10:07:15 +0200
> >
> >Hi Behnaz
> >Here an example using the 'employee data.sav' file.
> >The critical point is to use 'color(gender)' in the line that starts with
> >the ELEMENT statement.
> >Sometimes you might want to avoid the legend. Then you could for example
> >replace the line
> >  GUIDE: legend(aesthetic(aesthetic.color.interior), label("Gender"))
> >with
> >  GUIDE: legend(aesthetic(aesthetic.color), null())
> >That keeps the two colors for male and female in the bars, but omits the
> >legend.
> >
> >In the help files on your SPSS-cd you should find the GPL Reference Guide
> >(GPL Reference Guide.pdf) with many examples for coding charts with GPL.
> >
> >Hope that helps
> >
> >Christian
> >
> >
> >
> >
> >GGRAPH
> >   /GRAPHDATASET NAME="graphdataset" VARIABLES=jobcat gender
> >MISSING=LISTWISE
> >REPORTMISSING=NO
> >   /GRAPHSPEC SOURCE=INLINE.
> >BEGIN GPL
> >  SOURCE: s=userSource(id("graphdataset"))
> >  DATA: jobcat=col(source(s), name("jobcat"), unit.category())
> >  DATA: gender=col(source(s), name("gender"), unit.category())
> >  GUIDE: axis(dim(1), label("Employment Category"))
> >  GUIDE: axis(dim(2), label("Count"))
> >  GUIDE: legend(aesthetic(aesthetic.color.interior), label("Gender"))
> >  SCALE: cat(dim(1), include("1", "2", "3"))
> >  SCALE: linear(dim(2), include(0))
> >  SCALE: cat(aesthetic(aesthetic.color.interior), include("f", "m"))
> >  ELEMENT: interval.stack(position(summary.count(jobcat))),
> >shape.interior(shape.square), color(gender))
> >END GPL.
> >
> >
> >
> >-----Ursprüngliche Nachricht-----
> >Von: SPSSX(r) Discussion [mailto:[hidden email]]Im Auftrag von
> >behnaz shirazi
> >Gesendet: Donnerstag, 17. Mai 2007 17:19
> >An: [hidden email]
> >Betreff: Chart builder
> >
> >
> >Dear all:
> >
> >I am new with spss and I wonder if I want to have 2 Legend variable in
> >chart
> >builder what should I do?
> >As far as I played with IGRPH it's quit possible but I couldn't manage it
> >with chart builder and as I trying to keep consistency I prefer to have
>all
> >charts with chart builder?
> >
> >
> >Any suggestion
> >
> >Thank you
> >Behnaz Shirazi
> >
> >Don't just search. Find. Check out the new MSN Search!
> >http://search.msn.com/
>
>Express yourself instantly with MSN Messenger! Download today it's FREE!
>http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/