Modifying chart output

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

Modifying chart output

Luca Meyer
Hello,

I have got a set of charts (pie) I have generated with a bunch of IGRAPH
procedures.

For all these chart I would not need to:

(1) increase label size from the standard Arial 8 to an Arial 12
(2) hide the legend that is automatically generated
(3) hide the Y axis label in the plotted versions (a few charts look like
several pies one on top of the other)

Now I was wondering how to proceed:

=> I have tried to use CHARTLOOK specificaton but they did not work, am I
missing something out?
=> I am not really familiar with scripting and modifying autoscript should
be the last option
=> I was wondering is Python plug in or some other solution could be used
here

Please advice me.

Thanks,
Luca

Mr. Luca MEYER
Market research, data analysis & more
HYPERLINK "http://www.lucameyer.com/"www.lucameyer.com - Tel:
+39.339.495.00.21

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.11.8/940 - Release Date: 06/08/2007
16.53
Reply | Threaded
Open this post in threaded view
|

Re: Modifying chart output

ViAnn Beadle
Is there some reason why you have to use IGRAPH? You can do all of this if
you use GPL. Using GPL you can suppress the legend and add the labels via
the syntax, then use a chart template to change the color, borders, text
style, etc.

What version of SPSS are you using?

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Luca Meyer
Sent: Tuesday, August 07, 2007 1:58 PM
To: [hidden email]
Subject: Modifying chart output

Hello,

I have got a set of charts (pie) I have generated with a bunch of IGRAPH
procedures.

For all these chart I would not need to:

(1) increase label size from the standard Arial 8 to an Arial 12
(2) hide the legend that is automatically generated
(3) hide the Y axis label in the plotted versions (a few charts look like
several pies one on top of the other)

Now I was wondering how to proceed:

=> I have tried to use CHARTLOOK specificaton but they did not work, am I
missing something out?
=> I am not really familiar with scripting and modifying autoscript should
be the last option
=> I was wondering is Python plug in or some other solution could be used
here

Please advice me.

Thanks,
Luca

Mr. Luca MEYER
Market research, data analysis & more
HYPERLINK "http://www.lucameyer.com/"www.lucameyer.com - Tel:
+39.339.495.00.21

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.11.8/940 - Release Date: 06/08/2007
16.53
Reply | Threaded
Open this post in threaded view
|

R: Modifying chart output

Luca Meyer
Hello ViAnn,

I am using v15, and the main reason why I have chosen IGRAPH is to show
several pies into the same chart as in
http://www.lucameyer.com/SAMPLE_CHART.HTM

Can I do that with GPL? If so, how?

Thanks,
Luca

-----Messaggio originale-----
Da: ViAnn Beadle [mailto:[hidden email]]
Inviato: martedì 7 agosto 2007 22.34
A: 'Luca Meyer'; [hidden email]
Oggetto: RE: Modifying chart output

Is there some reason why you have to use IGRAPH? You can do all of this if
you use GPL. Using GPL you can suppress the legend and add the labels via
the syntax, then use a chart template to change the color, borders, text
style, etc.

What version of SPSS are you using?

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Luca Meyer
Sent: Tuesday, August 07, 2007 1:58 PM
To: [hidden email]
Subject: Modifying chart output

Hello,

I have got a set of charts (pie) I have generated with a bunch of IGRAPH
procedures.

For all these chart I would not need to:

(1) increase label size from the standard Arial 8 to an Arial 12
(2) hide the legend that is automatically generated
(3) hide the Y axis label in the plotted versions (a few charts look like
several pies one on top of the other)

Now I was wondering how to proceed:

=> I have tried to use CHARTLOOK specificaton but they did not work, am I
missing something out?
=> I am not really familiar with scripting and modifying autoscript should
be the last option => I was wondering is Python plug in or some other
solution could be used here

Please advice me.

Thanks,
Luca

Mr. Luca MEYER
Market research, data analysis & more
HYPERLINK "http://www.lucameyer.com/"www.lucameyer.com - Tel:
+39.339.495.00.21

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.11.8/940 - Release Date: 06/08/2007
16.53

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.11.8/940 - Release Date: 06/08/2007
16.53


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.11.8/941 - Release Date: 07/08/2007
16.06
Reply | Threaded
Open this post in threaded view
|

Re: Modifying chart output

ViAnn Beadle
It's very easy to get the multiple pies arranged in a grid by specifying the
category variable as a paneling variable in the rows (using Chart Builder).

What is not so easy--and I can't seem to find any way to do it--is to
position the category labels on the outside of the segments and the percent
labels within the segments. If this is really important to you then proceed
with the IGRAPH strategy. You can turn off the legend in syntax (LEGEND OFF
on the COLOR subcommand) and you can save the overrides to label size in a
saved Chartlook.

The reason why I suggested GPL here is that IGRAPH is an enormous memory
grabber so if you're going to create a lot of these charts split them up
into separate jobs. I also think that Charts created with GPL look a lot
better than charts created with IGRAPH.

IGRAPH Sample Syntax:

IGRAPH /VIEWNAME='Plotted Pie Chart' /SUMMARYVAR = $count /COLOR =
  VAR(gender) TYPE = CATEGORICAL  LEGEND OFF/Y = VAR(jobcat) TYPE =
CATEGORICAL
 /COORDINATE = VERTICAL /X1LENGTH=3.0 /YLENGTH=3.0 /X2LENGTH=3.0
 /CATORDER
  VAR(gender) (ASCENDING VALUES OMITEMPTY) /CATORDER VAR(jobcat) (ASCENDING
  VALUES OMITEMPTY)
 /PIE  KEY = OFF START 90 CW SLICE OUTSIDE LABEL SLICE NUMIN PCT.

GPL Sample Syntax:

GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=jobcat COUNT()[name=
  "COUNT"] 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: COUNT=col(source(s), name("COUNT"))
 DATA: gender=col(source(s), name("gender"), unit.category())
 COORD: polar.theta(startAngle(0))
 GUIDE: axis(dim(1), null())
 GUIDE: axis(dim(3), label("Employment Category"), opposite())
 GUIDE: legend(aesthetic(aesthetic.color.interior), null())
 SCALE: linear(dim(1), dataMinimum(), dataMaximum())
 ELEMENT: interval.stack(position(summary.percent(COUNT*1*jobcat))),
  color.interior(gender))
END GPL.

Then proceed to add labels to be saved in a chart template in the chart
editor.

-----Original Message-----
From: Luca Meyer [mailto:[hidden email]]
Sent: Wednesday, August 08, 2007 6:26 AM
To: 'ViAnn Beadle'; [hidden email]
Subject: R: Modifying chart output

Hello ViAnn,

I am using v15, and the main reason why I have chosen IGRAPH is to show
several pies into the same chart as in
http://www.lucameyer.com/SAMPLE_CHART.HTM

Can I do that with GPL? If so, how?

Thanks,
Luca

-----Messaggio originale-----
Da: ViAnn Beadle [mailto:[hidden email]]
Inviato: martedì 7 agosto 2007 22.34
A: 'Luca Meyer'; [hidden email]
Oggetto: RE: Modifying chart output

Is there some reason why you have to use IGRAPH? You can do all of this if
you use GPL. Using GPL you can suppress the legend and add the labels via
the syntax, then use a chart template to change the color, borders, text
style, etc.

What version of SPSS are you using?

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Luca Meyer
Sent: Tuesday, August 07, 2007 1:58 PM
To: [hidden email]
Subject: Modifying chart output

Hello,

I have got a set of charts (pie) I have generated with a bunch of IGRAPH
procedures.

For all these chart I would not need to:

(1) increase label size from the standard Arial 8 to an Arial 12
(2) hide the legend that is automatically generated
(3) hide the Y axis label in the plotted versions (a few charts look like
several pies one on top of the other)

Now I was wondering how to proceed:

=> I have tried to use CHARTLOOK specificaton but they did not work, am I
missing something out?
=> I am not really familiar with scripting and modifying autoscript should
be the last option => I was wondering is Python plug in or some other
solution could be used here

Please advice me.

Thanks,
Luca

Mr. Luca MEYER
Market research, data analysis & more
HYPERLINK "http://www.lucameyer.com/"www.lucameyer.com - Tel:
+39.339.495.00.21

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.11.8/940 - Release Date: 06/08/2007
16.53

No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.11.8/940 - Release Date: 06/08/2007
16.53


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.11.8/941 - Release Date: 07/08/2007
16.06
Reply | Threaded
Open this post in threaded view
|

Re: Modifying chart output

Keith McCormick
Hi All,

I have been watching this post with interest because I am wondering
what the easiest way is of getting rid of the legend with GPL resizing
the chart to take advantage of the extra space.

Thanks!

Keith McCormick

On 8/8/07, ViAnn Beadle <[hidden email]> wrote:

> It's very easy to get the multiple pies arranged in a grid by specifying the
> category variable as a paneling variable in the rows (using Chart Builder).
>
> What is not so easy--and I can't seem to find any way to do it--is to
> position the category labels on the outside of the segments and the percent
> labels within the segments. If this is really important to you then proceed
> with the IGRAPH strategy. You can turn off the legend in syntax (LEGEND OFF
> on the COLOR subcommand) and you can save the overrides to label size in a
> saved Chartlook.
>
> The reason why I suggested GPL here is that IGRAPH is an enormous memory
> grabber so if you're going to create a lot of these charts split them up
> into separate jobs. I also think that Charts created with GPL look a lot
> better than charts created with IGRAPH.
>
> IGRAPH Sample Syntax:
>
> IGRAPH /VIEWNAME='Plotted Pie Chart' /SUMMARYVAR = $count /COLOR =
>  VAR(gender) TYPE = CATEGORICAL  LEGEND OFF/Y = VAR(jobcat) TYPE =
> CATEGORICAL
>  /COORDINATE = VERTICAL /X1LENGTH=3.0 /YLENGTH=3.0 /X2LENGTH=3.0
>  /CATORDER
>  VAR(gender) (ASCENDING VALUES OMITEMPTY) /CATORDER VAR(jobcat) (ASCENDING
>  VALUES OMITEMPTY)
>  /PIE  KEY = OFF START 90 CW SLICE OUTSIDE LABEL SLICE NUMIN PCT.
>
> GPL Sample Syntax:
>
> GGRAPH
>  /GRAPHDATASET NAME="graphdataset" VARIABLES=jobcat COUNT()[name=
>  "COUNT"] 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: COUNT=col(source(s), name("COUNT"))
>  DATA: gender=col(source(s), name("gender"), unit.category())
>  COORD: polar.theta(startAngle(0))
>  GUIDE: axis(dim(1), null())
>  GUIDE: axis(dim(3), label("Employment Category"), opposite())
>  GUIDE: legend(aesthetic(aesthetic.color.interior), null())
>  SCALE: linear(dim(1), dataMinimum(), dataMaximum())
>  ELEMENT: interval.stack(position(summary.percent(COUNT*1*jobcat))),
>  color.interior(gender))
> END GPL.
>
> Then proceed to add labels to be saved in a chart template in the chart
> editor.
>
> -----Original Message-----
> From: Luca Meyer [mailto:[hidden email]]
> Sent: Wednesday, August 08, 2007 6:26 AM
> To: 'ViAnn Beadle'; [hidden email]
> Subject: R: Modifying chart output
>
> Hello ViAnn,
>
> I am using v15, and the main reason why I have chosen IGRAPH is to show
> several pies into the same chart as in
> http://www.lucameyer.com/SAMPLE_CHART.HTM
>
> Can I do that with GPL? If so, how?
>
> Thanks,
> Luca
>
> -----Messaggio originale-----
> Da: ViAnn Beadle [mailto:[hidden email]]
> Inviato: martedì 7 agosto 2007 22.34
> A: 'Luca Meyer'; [hidden email]
> Oggetto: RE: Modifying chart output
>
> Is there some reason why you have to use IGRAPH? You can do all of this if
> you use GPL. Using GPL you can suppress the legend and add the labels via
> the syntax, then use a chart template to change the color, borders, text
> style, etc.
>
> What version of SPSS are you using?
>
> -----Original Message-----
> From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
> Luca Meyer
> Sent: Tuesday, August 07, 2007 1:58 PM
> To: [hidden email]
> Subject: Modifying chart output
>
> Hello,
>
> I have got a set of charts (pie) I have generated with a bunch of IGRAPH
> procedures.
>
> For all these chart I would not need to:
>
> (1) increase label size from the standard Arial 8 to an Arial 12
> (2) hide the legend that is automatically generated
> (3) hide the Y axis label in the plotted versions (a few charts look like
> several pies one on top of the other)
>
> Now I was wondering how to proceed:
>
> => I have tried to use CHARTLOOK specificaton but they did not work, am I
> missing something out?
> => I am not really familiar with scripting and modifying autoscript should
> be the last option => I was wondering is Python plug in or some other
> solution could be used here
>
> Please advice me.
>
> Thanks,
> Luca
>
> Mr. Luca MEYER
> Market research, data analysis & more
> HYPERLINK "http://www.lucameyer.com/"www.lucameyer.com - Tel:
> +39.339.495.00.21
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.476 / Virus Database: 269.11.8/940 - Release Date: 06/08/2007
> 16.53
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.476 / Virus Database: 269.11.8/940 - Release Date: 06/08/2007
> 16.53
>
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.476 / Virus Database: 269.11.8/941 - Release Date: 07/08/2007
> 16.06
>