|
can someone plz tell me how to create a simple line chart or scatter plot in spss 16. i am trying to us ethe chart builder and it isnt giving me anything like what i need. i just tried dragging simple scatter plot to the top and then dragging the x and y variables that i wanted into the picture. any ideas, or is there a syntax i can use for these charts that would work in spss 16 too? thanks!
|
|
So what happened. What syntax was generated. Describe exactly the chart you
want and what your variables look like. -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of jimjohn Sent: Wednesday, February 20, 2008 9:48 AM To: [hidden email] Subject: simple line chart in spss 16 can someone plz tell me how to create a simple line chart or scatter plot in spss 16. i am trying to us ethe chart builder and it isnt giving me anything like what i need. i just tried dragging simple scatter plot to the top and then dragging the x and y variables that i wanted into the picture. any ideas, or is there a syntax i can use for these charts that would work in spss 16 too? thanks! -- View this message in context: http://www.nabble.com/simple-line-chart-in-spss-16-tp15592030p15592030.html Sent from the SPSSX Discussion mailing list archive at Nabble.com. ===================== 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 |
|
hi viann. my two variables are quantitative: age and payment rate. i just want to create a simple line chart that shows how the payment rate is at different ages. so i want age on the x axis and payment rate on the y axis. ok when i used chart builder, this is the syntax swhen i tried a line chart:
* Chart Builder. GGRAPH /GRAPHDATASET NAME="graphdataset" VARIABLES=age PPY_annual_percent MISSING=LISTWISE REPORTMISSING=NO /GRAPHSPEC SOURCE=INLINE. BEGIN GPL SOURCE: s=userSource(id("graphdataset")) DATA: age=col(source(s), name("age")) DATA: PPY_annual_percent=col(source(s), name("PPY_annual_percent")) GUIDE: axis(dim(1), label("age")) GUIDE: axis(dim(2), label("PPY_annual_percent")) ELEMENT: line(position(age*PPY_annual_percent), missing.wings()) END GPL.
|
|
What does your chart look like and what do your data look like? Do you have
any duplicate values for age? This will give you vertical lines within a specific value of age if you do have duplicate values for age. You haven't asked for any aggregation here like sum or mean if that is your intention. -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of jimjohn Sent: Wednesday, February 20, 2008 10:36 AM To: [hidden email] Subject: Re: simple line chart in spss 16 hi viann. my two variables are quantitative: age and payment rate. i just want to create a simple line chart that shows how the payment rate is at different ages. so i want age on the x axis and payment rate on the y axis. ok when i used chart builder, this is the syntax swhen i tried a line chart: * Chart Builder. GGRAPH /GRAPHDATASET NAME="graphdataset" VARIABLES=age PPY_annual_percent MISSING=LISTWISE REPORTMISSING=NO /GRAPHSPEC SOURCE=INLINE. BEGIN GPL SOURCE: s=userSource(id("graphdataset")) DATA: age=col(source(s), name("age")) DATA: PPY_annual_percent=col(source(s), name("PPY_annual_percent")) GUIDE: axis(dim(1), label("age")) GUIDE: axis(dim(2), label("PPY_annual_percent")) ELEMENT: line(position(age*PPY_annual_percent), missing.wings()) END GPL. ViAnn Beadle wrote: > > So what happened. What syntax was generated. Describe exactly the chart > you > want and what your variables look like. > > -----Original Message----- > From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of > jimjohn > Sent: Wednesday, February 20, 2008 9:48 AM > To: [hidden email] > Subject: simple line chart in spss 16 > > can someone plz tell me how to create a simple line chart or scatter plot > in > spss 16. i am trying to us ethe chart builder and it isnt giving me > anything > like what i need. i just tried dragging simple scatter plot to the top and > then dragging the x and y variables that i wanted into the picture. any > ideas, or is there a syntax i can use for these charts that would work in > spss 16 too? thanks! > -- > View this message in context: > > Sent from the SPSSX Discussion mailing list archive at Nabble.com. > > ===================== > 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 > > -- View this message in context: http://www.nabble.com/simple-line-chart-in-spss-16-tp15592030p15594345.html Sent from the SPSSX Discussion mailing list archive at Nabble.com. ===================== 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 |
|
thats it then, because i do have duplicate values for age. i guess ill just have to calculate the payment rate means for each age and then try graphing the line chart. thx.
|
|
If you look at the Chart Builder UI you can change the statistic from value
to sum. I suggest a quick read of the Help. Open Chart Builder and hit the Help button. Go through the mini-tutorial. -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of jimjohn Sent: Wednesday, February 20, 2008 11:08 AM To: [hidden email] Subject: Re: simple line chart in spss 16 thats it then, because i do have duplicate values for age. i guess ill just have to calculate the payment rate means for each age and then try graphing the line chart. thx. ViAnn Beadle wrote: > > What does your chart look like and what do your data look like? Do you > have > any duplicate values for age? This will give you vertical lines within a > specific value of age if you do have duplicate values for age. You haven't > asked for any aggregation here like sum or mean if that is your intention. > -----Original Message----- > From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of > jimjohn > Sent: Wednesday, February 20, 2008 10:36 AM > To: [hidden email] > Subject: Re: simple line chart in spss 16 > > hi viann. my two variables are quantitative: age and payment rate. i just > want to create a simple line chart that shows how the payment rate is at > different ages. so i want age on the x axis and payment rate on the y > axis. > ok when i used chart builder, this is the syntax swhen i tried a line > chart: > * Chart Builder. > GGRAPH > /GRAPHDATASET NAME="graphdataset" VARIABLES=age PPY_annual_percent > MISSING=LISTWISE REPORTMISSING=NO > /GRAPHSPEC SOURCE=INLINE. > BEGIN GPL > SOURCE: s=userSource(id("graphdataset")) > DATA: age=col(source(s), name("age")) > DATA: PPY_annual_percent=col(source(s), name("PPY_annual_percent")) > GUIDE: axis(dim(1), label("age")) > GUIDE: axis(dim(2), label("PPY_annual_percent")) > ELEMENT: line(position(age*PPY_annual_percent), missing.wings()) > END GPL. > > > > > > > > ViAnn Beadle wrote: >> >> So what happened. What syntax was generated. Describe exactly the chart >> you >> want and what your variables look like. >> >> -----Original Message----- >> From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of >> jimjohn >> Sent: Wednesday, February 20, 2008 9:48 AM >> To: [hidden email] >> Subject: simple line chart in spss 16 >> >> can someone plz tell me how to create a simple line chart or scatter plot >> in >> spss 16. i am trying to us ethe chart builder and it isnt giving me >> anything >> like what i need. i just tried dragging simple scatter plot to the top >> and >> then dragging the x and y variables that i wanted into the picture. any >> ideas, or is there a syntax i can use for these charts that would work in >> spss 16 too? thanks! >> -- >> View this message in context: >> > >> Sent from the SPSSX Discussion mailing list archive at Nabble.com. >> >> ===================== >> 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 >> >> > > -- > View this message in context: > > Sent from the SPSSX Discussion mailing list archive at Nabble.com. > > ===================== > 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 > > -- View this message in context: http://www.nabble.com/simple-line-chart-in-spss-16-tp15592030p15595111.html Sent from the SPSSX Discussion mailing list archive at Nabble.com. ===================== 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 |
| Free forum by Nabble | Edit this page |
