GGRAPH QUESTION

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

GGRAPH QUESTION

Weinberg, Jerry
I am trying to create a series of bar graphs for questions in a survey
that I am analyzing.  My Y axis is to be the % of percentage of
respondents who endorsed a given response for a given question. However,
I want to enforce that the Y axis always  go from 0% to 100%. I was able
to generate the following syntax to create the chart, but what do I need
to add to have it do what I want it to do?

* Chart Builder.
GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=Q1_A_1
COUNT()[name="COUNT"] MISSING=LISTWISE
    REPORTMISSING=NO
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: Q1_A_1=col(source(s), name("Q1_A_1"), unit.category())
  DATA: COUNT=col(source(s), name("COUNT"))
  GUIDE: axis(dim(1), label("I was satisfied with the quality of
instruction at STU."))
  GUIDE: axis(dim(2), label("Percent"))
  SCALE: cat(dim(1), include("1", "2", "3", "4"))
  SCALE: linear(dim(2), include(0))
  ELEMENT: interval(position(summary.percent(Q1_A_1*COUNT,
base.all(acrossPanels()))),
    shape.interior(shape.square))
END GPL.

<mailto:[hidden email]>  
Thanks in advance,
 
Jerry Weinberg, Ph.D
Director, Office of Institutional Research
_____________________________
St. Thomas University
16401 NW 37th Avenue
Miami Gardens, FL 33054
(305) 474-6886
[hidden email]
 

 

 

====================To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: GGRAPH QUESTION

Peck, Jon
All you have to do is change the include(0) to include(0, 100) for dim(2).

HTH,
Jon Peck

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Weinberg, Jerry
Sent: Thursday, June 05, 2008 8:50 AM
To: [hidden email]
Subject: [SPSSX-L] GGRAPH QUESTION

I am trying to create a series of bar graphs for questions in a survey
that I am analyzing.  My Y axis is to be the % of percentage of
respondents who endorsed a given response for a given question. However,
I want to enforce that the Y axis always  go from 0% to 100%. I was able
to generate the following syntax to create the chart, but what do I need
to add to have it do what I want it to do?

* Chart Builder.
GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=Q1_A_1
COUNT()[name="COUNT"] MISSING=LISTWISE
    REPORTMISSING=NO
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: Q1_A_1=col(source(s), name("Q1_A_1"), unit.category())
  DATA: COUNT=col(source(s), name("COUNT"))
  GUIDE: axis(dim(1), label("I was satisfied with the quality of
instruction at STU."))
  GUIDE: axis(dim(2), label("Percent"))
  SCALE: cat(dim(1), include("1", "2", "3", "4"))
  SCALE: linear(dim(2), include(0))
  ELEMENT: interval(position(summary.percent(Q1_A_1*COUNT,
base.all(acrossPanels()))),
    shape.interior(shape.square))
END GPL.

<mailto:[hidden email]>
Thanks in advance,

Jerry Weinberg, Ph.D
Director, Office of Institutional Research
_____________________________
St. Thomas University
16401 NW 37th Avenue
Miami Gardens, FL 33054
(305) 474-6886
[hidden email]






=======
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

AW: GGRAPH QUESTION

la volta statistics
In reply to this post by Weinberg, Jerry
Hi Jerry

uses smthing like:
SCALE: linear(dim(2), include(0), min(0), max(100))
in your syntax
Hope this helps, Christian

-----Ursprungliche Nachricht-----
Von: SPSSX(r) Discussion [mailto:[hidden email]]Im Auftrag von
Weinberg, Jerry
Gesendet: Donnerstag, 5. Juni 2008 16:50
An: [hidden email]
Betreff: GGRAPH QUESTION


I am trying to create a series of bar graphs for questions in a survey
that I am analyzing.  My Y axis is to be the % of percentage of
respondents who endorsed a given response for a given question. However,
I want to enforce that the Y axis always  go from 0% to 100%. I was able
to generate the following syntax to create the chart, but what do I need
to add to have it do what I want it to do?

* Chart Builder.
GGRAPH
  /GRAPHDATASET NAME="graphdataset" VARIABLES=Q1_A_1
COUNT()[name="COUNT"] MISSING=LISTWISE
    REPORTMISSING=NO
  /GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
  SOURCE: s=userSource(id("graphdataset"))
  DATA: Q1_A_1=col(source(s), name("Q1_A_1"), unit.category())
  DATA: COUNT=col(source(s), name("COUNT"))
  GUIDE: axis(dim(1), label("I was satisfied with the quality of
instruction at STU."))
  GUIDE: axis(dim(2), label("Percent"))
  SCALE: cat(dim(1), include("1", "2", "3", "4"))
  SCALE: linear(dim(2), include(0))
  ELEMENT: interval(position(summary.percent(Q1_A_1*COUNT,
base.all(acrossPanels()))),
    shape.interior(shape.square))
END GPL.

<mailto:[hidden email]>
Thanks in advance,

Jerry Weinberg, Ph.D
Director, Office of Institutional Research
_____________________________
St. Thomas University
16401 NW 37th Avenue
Miami Gardens, FL 33054
(305) 474-6886
[hidden email]






=======
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Job Opportunity w/ US Army

Sea, Carleton, VBAVACO
In reply to this post by Peck, Jon
If anyone is interested in a position utilizing SPSS Base, Clementine,
and Text Analysis for Surveys, and you have these skills, the US Army
Family and Morale, Welfare and Recreation Command has a Sr Research
Specialist position in Alexandria, VA.

Please visit the following website and enter in the following
announcement # CF08-353 in the employment section.

Please let me know if you have any questions.


Carleton Sea

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD