|
I am relatively new to using syntax for SPSS and am wondering if it is
possible to use syntax to format graphs instead of using the Interactive Graph tool? Specifically, I am looking to have syntax that addresses how values in the graph are labeled, location of the legend, whether the legend title is hidden or not, etc. Also, does anyone know if you can use syntax to export a particular graph to MS Word once it is created? And if so, how you would do that? Thank you! ===================== 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 |
|
You'll have to be more specific for definitive answers.
What kinds of values are you talking about in the graph? What kind of legend and where is it moved to? Legend title is controlled by syntax in GGRAPH but not in IGRAPH or GRAPH. I think that it can be hidden and saved to a chart template which is then applied via syntax for subsequent charts. OMS can be used to export any sort of output to RTF format (one that Word reads). What release of SPSS are you using? -----Original Message----- From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Denise Sent: Thursday, October 22, 2009 11:52 AM To: [hidden email] Subject: Syntax for graphs? I am relatively new to using syntax for SPSS and am wondering if it is possible to use syntax to format graphs instead of using the Interactive Graph tool? Specifically, I am looking to have syntax that addresses how values in the graph are labeled, location of the legend, whether the legend title is hidden or not, etc. Also, does anyone know if you can use syntax to export a particular graph to MS Word once it is created? And if so, how you would do that? Thank you! ===================== 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 |
|
In reply to this post by Denise-22
Denise
I'm a staunch proponent of syntax, but I'm not sure about the syntax route on this one, so I'd have to start with the menus. You can copy charts from the Viewer to Word by clicking on the chart, [CTRL]C to copy, switch to your Word doc (which must already be open) then [CTRL]V to paste (right clicking etc. takes too long). I've had a similar problem (loses the title) but it's quicker for me to write my own title in the Word doc rather than waste precious time ferreting through menus. Anything more complicated than a title would have me into the menus. A neat trick is to use the menu route to produce a few analyses (in your case graphs) using various options, then in the Viewer copy the syntax pasted by SPSS into a Word or new SPSS Syntax file and save it. You can then cannibalise/edit it for later use. I've been using SPSS since 1971, but in 2002 I was new to Word, Windows and SPSS for Windows. I needed a chart for a tutorial, but didn't know the syntax so I used PASTE in SPSS11, not just for the chart I wanted, but to have an example of the syntax for a tutorial. ViAnn will say I should have used the Help menu, but that would have taken too long. I hate to admit it, but the menu was quicker. I now have SPSS15 which automatically pastes syntax to the viewer. If you do this for simple data transformations, tabulations and straightforward statistics, you get far more syntax than you need. The defaults are usually sufficient, so abbreviated and minimum syntax does for most things. Since you are new to syntax, have a look at my new website http://surveyresearch.weebly.com/ where you will find gentle step-by-step SPSS tutorials with full sets of screen dumps. Some tutorials are still on another site, but there are links to them from here. Most transformations and analyses are demonstrated twice, first using syntax, then using the drop-down menus: I know which I prefer, but then I'm biased. You'll know what I mean if you look at the slide-show exercises from Julie Pallant SPSS Survival Manual and appreciate how much stress they caused me. John Hall ----- Original Message ----- From: "Denise" <[hidden email]> To: <[hidden email]> Sent: Thursday, October 22, 2009 7:52 PM Subject: Syntax for graphs? > > I am relatively new to using syntax for SPSS and am wondering if it is > possible to use syntax to format graphs instead of using the Interactive > Graph tool? Specifically, I am looking to have syntax that addresses how > values in the graph are labeled, location of the legend, whether the > legend title is hidden or not, etc. > > Also, does anyone know if you can use syntax to export a particular graph > to MS Word once it is created? And if so, how you would do that? > > Thank you! > > ===================== > 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 |
|
In reply to this post by Denise-22
Denise
A couple of links got edited out of my previous
reply (in plain text) so I'm resending them in RTF.
Replication of exercises from Pallant: http://surveyresearch.weebly.com/7-old-dog-old-tricks.html
(Ppt show, 106 slides comparing menus to syntax for
the same task, clearly demonstrating the superiority of syntax for everything
she does: joke at end which you may or may not get)
http://surveyresearch.weebly.com/uploads/2/9/9/8/2998485/how_i_learned_to_love_computers.gif (Small and quick, but probably how you might feel
after several hours wrestling with drop-down menus in SPSS!)
Hope they work this time and that you enjoy the
show.
John
|
|
In reply to this post by Denise-22
Thank you for the feedback!
What kinds of values are you talking about in the graph? There are some pie graphs with basic demographics (gender, ethnicity, tenure, etc.) and bar graphs showing mean scores for a variety of questions we posed. What kind of legend and where is it moved to? Its the legend that is automatically created for the graphs, I just prefer it to be below the graph rather than to the side of it. The legend title shows up as the variable name that I am graphing, which is what I am trying to turn off. What release of SPSS are you using? I am currently using 15.0 ===================== 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 |
