Radar charts in SPSS 17

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

Radar charts in SPSS 17

Mark Webb-3

Is the graph gallery the complete list of graph types available or are there additional ones?

Excel offers a Radar graph – is there an equivalent in SPSS ?

Regards

Mark Webb

 

+27 21 786 4379

+27 72 199 1000

Skype - webbmark

[hidden email]

 

Reply | Threaded
Open this post in threaded view
|

Re: Radar charts in SPSS 17

Daciuk, Tim

The short answer is no, not that I am aware of.  If you wanted to include a radar chart, you would need to create one using Viz Designer, and, make it available to SPSS (export it to SPSS).

 

Tim Daciuk

Director, Worldwide Demo Resources

SPSS Inc.

 

 


From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Mark Webb
Sent: Tuesday, March 10, 2009 5:06 AM
To: [hidden email]
Subject: Radar charts in SPSS 17

 

Is the graph gallery the complete list of graph types available or are there additional ones?

Excel offers a Radar graph – is there an equivalent in SPSS ?

Regards

Mark Webb

 

+27 21 786 4379

+27 72 199 1000

Skype - webbmark

[hidden email]

 

Reply | Threaded
Open this post in threaded view
|

Re: Radar charts in SPSS 17

Jignesh Sutar

If you search for "radar" at spss dev central forums then there is a single post which gives an example how to do this using GGRAPH/GPL.

HTH
Jignesh

2009/3/10 Daciuk, Tim <[hidden email]>

The short answer is no, not that I am aware of.  If you wanted to include a radar chart, you would need to create one using Viz Designer, and, make it available to SPSS (export it to SPSS).

 

Tim Daciuk

Director, Worldwide Demo Resources

SPSS Inc.

 

 


From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Mark Webb
Sent: Tuesday, March 10, 2009 5:06 AM
To: [hidden email]
Subject: Radar charts in SPSS 17

 

Is the graph gallery the complete list of graph types available or are there additional ones?

Excel offers a Radar graph – is there an equivalent in SPSS ?

Regards

Mark Webb

 

+27 21 786 4379

+27 72 199 1000

Skype - webbmark

[hidden email]

 


Reply | Threaded
Open this post in threaded view
|

Re: Radar charts in SPSS 17

SPSS Support

Hello Mark,

  The link for the SPSS Dev Central site that Jignesh mentioned is http://www.spss.com/devcentral/  . The DevCentral Forum link is on the right side of the page.

  A feature request for radar plots in the chart builder has been filed with SPSS Development.

 

David Matheson

SPSS Statistical Support

 


From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of J Sutar
Sent: Tuesday, March 10, 2009 4:56 AM
To: [hidden email]
Subject: Re: Radar charts in SPSS 17

 


If you search for "radar" at spss dev central forums then there is a single post which gives an example how to do this using GGRAPH/GPL.

 

HTH

Jignesh

 

2009/3/10 Daciuk, Tim <[hidden email]>

The short answer is no, not that I am aware of.  If you wanted to include a radar chart, you would need to create one using Viz Designer, and, make it available to SPSS (export it to SPSS).

 

Tim Daciuk

Director, Worldwide Demo Resources

SPSS Inc.

 

 


From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Mark Webb
Sent: Tuesday, March 10, 2009 5:06 AM
To: [hidden email]
Subject: Radar charts in SPSS 17

 

Is the graph gallery the complete list of graph types available or are there additional ones?

Excel offers a Radar graph – is there an equivalent in SPSS ?

Regards

Mark Webb

 

+27 21 786 4379

+27 72 199 1000

Skype - webbmark

[hidden email]

 

 

Reply | Threaded
Open this post in threaded view
|

Re: Radar charts in SPSS 17

ViAnn Beadle

The general basis for a radar or spider plot is the polar coordinate. A simple pie chart has a polar.theta coordinate which has one dimension which is the diameter of the of the circle. A radar or spider chart has a polar coordinate (note the absence of the theta modifier) which has two dimensions: the diameter and the radius. Note that you could use almost any element type in the chart but typically you would use the bar element, area element, or line element.

 

The gallery in chart builder doesn’t provide any examples because chart builder doesn’t present the polar coordinate as one of the choices for coordinates. The simple polar coordinate was omitted because it is very hard to visually represent it from the polar.theta coordinate. You  basically have to experiment on your own and read the GPL reference materials carefully when experimenting with the simple polar coordinate. Here is a simple example which use the polar coordinate with the world95 sample dataset to compare average male and female life expectancy by a categorical climate variable.

 

add value labels climate 4 ‘tropical/temp’.

 

GGRAPH

  /GRAPHDATASET NAME="graphdataset" VARIABLES=climate MEAN(lifeexpf) MEAN(lifeexpm)

    TRANSFORM=VARSTOCASES(SUMMARY="#SUMMARY" INDEX="#INDEX")

  /GRAPHSPEC SOURCE=INLINE.

BEGIN GPL

  SOURCE: s=userSource(id("graphdataset"))

  DATA: climate=col(source(s), name("climate"), unit.category())

  DATA: SUMMARY=col(source(s), name("#SUMMARY"))

  DATA: INDEX=col(source(s), name("#INDEX"), unit.category())

  COORD: polar(startAngle(0))

  SCALE: cat(dim(1), sort.values("8","7","6","4","5", "1", "2", "3", "10", "9"))

  ELEMENT: line(position(climate*SUMMARY), color(INDEX)), size(size."4px"),

   missing.wings())

END GPL.

 

Notes:

1.       Since we are comparing summary variables to each other, the GGRAPH command uses the TRANSFORM=VARSTOCASES to do the necessary stacking.

2.       Climate is defined as a categorical variable and creates the equally spaced tick marks on the diameter of the circle.

3.       SUMMARY is the y-axis variable which is displayed on the chart as a radius from top to the center of the chart.

4.       The color function on the ELEMENT statement assigns a color to the result variables.

 

 

 

 

 

 

 

From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of SPSS Support
Sent: Tuesday, March 10, 2009 11:09 AM
To: [hidden email]
Subject: Re: Radar charts in SPSS 17

 

Hello Mark,

  The link for the SPSS Dev Central site that Jignesh mentioned is http://www.spss.com/devcentral/  . The DevCentral Forum link is on the right side of the page.

  A feature request for radar plots in the chart builder has been filed with SPSS Development.

 

David Matheson

SPSS Statistical Support

 


From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of J Sutar
Sent: Tuesday, March 10, 2009 4:56 AM
To: [hidden email]
Subject: Re: Radar charts in SPSS 17

 


If you search for "radar" at spss dev central forums then there is a single post which gives an example how to do this using GGRAPH/GPL.

 

HTH

Jignesh

 

2009/3/10 Daciuk, Tim <[hidden email]>

The short answer is no, not that I am aware of.  If you wanted to include a radar chart, you would need to create one using Viz Designer, and, make it available to SPSS (export it to SPSS).

 

Tim Daciuk

Director, Worldwide Demo Resources

SPSS Inc.

 

 

 


From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Mark Webb
Sent: Tuesday, March 10, 2009 5:06 AM
To: [hidden email]
Subject: Radar charts in SPSS 17

 

Is the graph gallery the complete list of graph types available or are there additional ones?

Excel offers a Radar graph – is there an equivalent in SPSS ?

Regards

Mark Webb

 

+27 21 786 4379

+27 72 199 1000

Skype - webbmark

[hidden email]

 

 

Reply | Threaded
Open this post in threaded view
|

Re: Radar charts in SPSS 17

Trejtowicz, Mariusz
Wiadomość
 
Thank you for this syntax. It is easier to learn when you have an example. I have discovered, that to produce more Excel-like radar chart it is possible also:
 - to make lines straight as well as to "close" the circle - by adding 'preserveStraightLines()' and 'close()' to ELEMENT specification
 - to add reference lines for each category
 
GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=climate MEAN(lifeexpf) MEAN(lifeexpm)
    TRANSFORM=VARSTOCASES(SUMMARY="#SUMMARY" INDEX="#INDEX")
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: climate=col(source(s), name("climate"), unit.category())
  DATA: SUMMARY=col(source(s), name("#SUMMARY"))
  DATA: INDEX=col(source(s), name("#INDEX"), unit.category())
  GUIDE: form.line(position("8"))
  GUIDE: form.line(position("7"))
  GUIDE: form.line(position("6"))
  GUIDE: form.line(position("4"))
  GUIDE: form.line(position("5"))
  GUIDE: form.line(position("1"))
  GUIDE: form.line(position("2"))
  GUIDE: form.line(position("3"))
  GUIDE: form.line(position("10"))
  GUIDE: form.line(position("9"))
  COORD: polar(startAngle(0))
  SCALE: cat(dim(1), sort.values("8","7","6","4","5", "1", "2", "3", "10", "9"))
  SCALE: linear(dim(2), min(0), max(100))
  ELEMENT: line(position(climate*SUMMARY), color(INDEX)), size(size."4px"), missing.wings(), preserveStraightLines(), closed())
END GPL.
 
However, I have a problem with this syntax. Some categories' labels aren't visible (or they are truncated). I have tried to fix it with GRAPH: begin(origin(..,..), scale(..,..)) but with little improvement.
Is it other way to do it?
 
 
Best regards,
Mariusz Trejtowicz
 
 
 
 
 
 
 
 
 
-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of ViAnn Beadle
Sent: Wednesday, March 11, 2009 1:59 AM
To: [hidden email]
Subject: Re: Radar charts in SPSS 17

The general basis for a radar or spider plot is the polar coordinate. A simple pie chart has a polar.theta coordinate which has one dimension which is the diameter of the of the circle. A radar or spider chart has a polar coordinate (note the absence of the theta modifier) which has two dimensions: the diameter and the radius. Note that you could use almost any element type in the chart but typically you would use the bar element, area element, or line element.

 

The gallery in chart builder doesn’t provide any examples because chart builder doesn’t present the polar coordinate as one of the choices for coordinates. The simple polar coordinate was omitted because it is very hard to visually represent it from the polar.theta coordinate. You  basically have to experiment on your own and read the GPL reference materials carefully when experimenting with the simple polar coordinate. Here is a simple example which use the polar coordinate with the world95 sample dataset to compare average male and female life expectancy by a categorical climate variable.

 

add value labels climate 4 ‘tropical/temp’.

 

GGRAPH

  /GRAPHDATASET NAME="graphdataset" VARIABLES=climate MEAN(lifeexpf) MEAN(lifeexpm)

    TRANSFORM=VARSTOCASES(SUMMARY="#SUMMARY" INDEX="#INDEX")

  /GRAPHSPEC SOURCE=INLINE.

BEGIN GPL

  SOURCE: s=userSource(id("graphdataset"))

  DATA: climate=col(source(s), name("climate"), unit.category())

  DATA: SUMMARY=col(source(s), name("#SUMMARY"))

  DATA: INDEX=col(source(s), name("#INDEX"), unit.category())

  COORD: polar(startAngle(0))

  SCALE: cat(dim(1), sort.values("8","7","6","4","5", "1", "2", "3", "10", "9"))

  ELEMENT: line(position(climate*SUMMARY), color(INDEX)), size(size."4px"),

   missing.wings())

END GPL.

 

Notes:

1.       Since we are comparing summary variables to each other, the GGRAPH command uses the TRANSFORM=VARSTOCASES to do the necessary stacking.

2.       Climate is defined as a categorical variable and creates the equally spaced tick marks on the diameter of the circle.

3.       SUMMARY is the y-axis variable which is displayed on the chart as a radius from top to the center of the chart.

4.       The color function on the ELEMENT statement assigns a color to the result variables.

 

 

 

 

 

 

 

From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of SPSS Support
Sent: Tuesday, March 10, 2009 11:09 AM
To: [hidden email]
Subject: Re: Radar charts in SPSS 17

 

Hello Mark,

  The link for the SPSS Dev Central site that Jignesh mentioned is http://www.spss.com/devcentral/  . The DevCentral Forum link is on the right side of the page.

  A feature request for radar plots in the chart builder has been filed with SPSS Development.

 

David Matheson

SPSS Statistical Support

 


From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of J Sutar
Sent: Tuesday, March 10, 2009 4:56 AM
To: [hidden email]
Subject: Re: Radar charts in SPSS 17

 


If you search for "radar" at spss dev central forums then there is a single post which gives an example how to do this using GGRAPH/GPL.

 

HTH

Jignesh

 

2009/3/10 Daciuk, Tim <[hidden email]>

The short answer is no, not that I am aware of.  If you wanted to include a radar chart, you would need to create one using Viz Designer, and, make it available to SPSS (export it to SPSS).

 

Tim Daciuk

Director, Worldwide Demo Resources

SPSS Inc.

 

 

 


From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Mark Webb
Sent: Tuesday, March 10, 2009 5:06 AM
To: [hidden email]
Subject: Radar charts in SPSS 17

 

Is the graph gallery the complete list of graph types available or are there additional ones?

Excel offers a Radar graph – is there an equivalent in SPSS ?

Regards

Mark Webb

 

+27 21 786 4379

+27 72 199 1000

Skype - webbmark

[hidden email]

 

 

Reply | Threaded
Open this post in threaded view
|

Re: Radar charts in SPSS 17

ViAnn Beadle
Wiadomość

The category labels are clipped on the diameter of the chart because the standard chart template isn’t designed very well to handle polar charts. You can manually edit the chart in the chart editor to provide more space but I found that in version 16 of SPSS you had to do the following to get a workable template for axis clipping.

 

1.       Create a simple bar chart.

2.       Open the bar chart in the chart editor.

3.       Click in the bottom right corner to select the inner frame.

4.       Click and drag the left margin at the resizing handle to provide more space between in and the invisible outer margin.

5.       Drag the bottom margin at the resizing handle to provide more space.

6.       Save the template and then refer to it in the GGRAPH command.

 

Good idea on the reference lines.

 

From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Trejtowicz, Mariusz
Sent: Wednesday, March 11, 2009 4:57 PM
To: [hidden email]
Subject: Re: Radar charts in SPSS 17

 

 

Thank you for this syntax. It is easier to learn when you have an example. I have discovered, that to produce more Excel-like radar chart it is possible also:

 - to make lines straight as well as to "close" the circle - by adding 'preserveStraightLines()' and 'close()' to ELEMENT specification

 - to add reference lines for each category

 

GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=climate MEAN(lifeexpf) MEAN(lifeexpm)
    TRANSFORM=VARSTOCASES(SUMMARY="#SUMMARY" INDEX="#INDEX")
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: climate=col(source(s), name("climate"), unit.category())
  DATA: SUMMARY=col(source(s), name("#SUMMARY"))
  DATA: INDEX=col(source(s), name("#INDEX"), unit.category())
  GUIDE: form.line(position("8"))
  GUIDE: form.line(position("7"))
  GUIDE: form.line(position("6"))
  GUIDE: form.line(position("4"))
  GUIDE: form.line(position("5"))
  GUIDE: form.line(position("1"))
  GUIDE: form.line(position("2"))
  GUIDE: form.line(position("3"))
  GUIDE: form.line(position("10"))
  GUIDE: form.line(position("9"))
  COORD: polar(startAngle(0))
  SCALE: cat(dim(1), sort.values("8","7","6","4","5", "1", "2", "3", "10", "9"))
  SCALE: linear(dim(2), min(0), max(100))
  ELEMENT: line(position(climate*SUMMARY), color(INDEX)), size(size."4px"), missing.wings(), preserveStraightLines(), closed())
END GPL.

 

However, I have a problem with this syntax. Some categories' labels aren't visible (or they are truncated). I have tried to fix it with GRAPH: begin(origin(..,..), scale(..,..)) but with little improvement.

Is it other way to do it?

 

 

Best regards,

Mariusz Trejtowicz

 

 

 

 

 

 

 

 

 

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of ViAnn Beadle
Sent: Wednesday, March 11, 2009 1:59 AM
To: [hidden email]
Subject: Re: Radar charts in SPSS 17

The general basis for a radar or spider plot is the polar coordinate. A simple pie chart has a polar.theta coordinate which has one dimension which is the diameter of the of the circle. A radar or spider chart has a polar coordinate (note the absence of the theta modifier) which has two dimensions: the diameter and the radius. Note that you could use almost any element type in the chart but typically you would use the bar element, area element, or line element.

 

The gallery in chart builder doesn’t provide any examples because chart builder doesn’t present the polar coordinate as one of the choices for coordinates. The simple polar coordinate was omitted because it is very hard to visually represent it from the polar.theta coordinate. You  basically have to experiment on your own and read the GPL reference materials carefully when experimenting with the simple polar coordinate. Here is a simple example which use the polar coordinate with the world95 sample dataset to compare average male and female life expectancy by a categorical climate variable.

 

add value labels climate 4 ‘tropical/temp’.

 

GGRAPH

  /GRAPHDATASET NAME="graphdataset" VARIABLES=climate MEAN(lifeexpf) MEAN(lifeexpm)

    TRANSFORM=VARSTOCASES(SUMMARY="#SUMMARY" INDEX="#INDEX")

  /GRAPHSPEC SOURCE=INLINE.

BEGIN GPL

  SOURCE: s=userSource(id("graphdataset"))

  DATA: climate=col(source(s), name("climate"), unit.category())

  DATA: SUMMARY=col(source(s), name("#SUMMARY"))

  DATA: INDEX=col(source(s), name("#INDEX"), unit.category())

  COORD: polar(startAngle(0))

  SCALE: cat(dim(1), sort.values("8","7","6","4","5", "1", "2", "3", "10", "9"))

  ELEMENT: line(position(climate*SUMMARY), color(INDEX)), size(size."4px"),

   missing.wings())

END GPL.

 

Notes:

1.       Since we are comparing summary variables to each other, the GGRAPH command uses the TRANSFORM=VARSTOCASES to do the necessary stacking.

2.       Climate is defined as a categorical variable and creates the equally spaced tick marks on the diameter of the circle.

3.       SUMMARY is the y-axis variable which is displayed on the chart as a radius from top to the center of the chart.

4.       The color function on the ELEMENT statement assigns a color to the result variables.

 

 

 

 

 

 

 

From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of SPSS Support
Sent: Tuesday, March 10, 2009 11:09 AM
To: [hidden email]
Subject: Re: Radar charts in SPSS 17

 

Hello Mark,

  The link for the SPSS Dev Central site that Jignesh mentioned is http://www.spss.com/devcentral/  . The DevCentral Forum link is on the right side of the page.

  A feature request for radar plots in the chart builder has been filed with SPSS Development.

 

David Matheson

SPSS Statistical Support

 


From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of J Sutar
Sent: Tuesday, March 10, 2009 4:56 AM
To: [hidden email]
Subject: Re: Radar charts in SPSS 17

 


If you search for "radar" at spss dev central forums then there is a single post which gives an example how to do this using GGRAPH/GPL.

 

HTH

Jignesh

 

2009/3/10 Daciuk, Tim <[hidden email]>

The short answer is no, not that I am aware of.  If you wanted to include a radar chart, you would need to create one using Viz Designer, and, make it available to SPSS (export it to SPSS).

 

Tim Daciuk

Director, Worldwide Demo Resources

SPSS Inc.

 

 

 


From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Mark Webb
Sent: Tuesday, March 10, 2009 5:06 AM
To: [hidden email]
Subject: Radar charts in SPSS 17

 

Is the graph gallery the complete list of graph types available or are there additional ones?

Excel offers a Radar graph – is there an equivalent in SPSS ?

Regards

Mark Webb

 

+27 21 786 4379

+27 72 199 1000

Skype - webbmark

[hidden email]