LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2009)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 8 Jun 2009 15:15:11 -0700
Reply-To:     "Wells, Christine" <crwells@ucla.edu>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         "Wells, Christine" <crwells@ucla.edu>
Subject:      question about ggraph/gpl
Content-Type: multipart/alternative;

Greetings,

I have a question about ggraph and gpl. I am trying to make several scatterplots (with a panel variable) using ggraph. I have the code mostly working, except that I can't get rid of the display of R-squareds in the last panel. In other words, it seems that by default, the R-squareds for each fit line (one for each panel in the graph) are displayed, and they are all displayed in the middle of the final panel of the graph. I would like to get rid the R-squareds, but I don't know how to do this via the ggraph and/or gpl syntax. The dataset and an example of what I am trying to do can be found at http://www.ats.ucla.edu/stat/spss/examples/alda/chapter4/aldaspssch4.htm .

I didn't see any mention of display of R-squared values in the gpl guide, much less how to control if or where they would appear.

Here is the syntax that I have been using:

formats alcuse age_14 (f3.0). GGRAPH /GRAPHDATASET NAME="iGraphDataset" VARIABLES= alcuse age_14 id /GRAPHSPEC SOURCE=INLINE INLINETEMPLATE=["<addFitLine type='linear' /> " "<setWrapPanels/>"]. BEGIN GPL SOURCE: s=userSource( id( "iGraphDataset" ) ) DATA: Y_Var=col( source(s), name( "alcuse" ) ) DATA: X1_Var=col( source(s), name( "age_14" ) ) DATA: Panel_Var0=col( source(s), name( "id" ), unit.category() ) COORD: rect( dim( 1, 2 ) ) GUIDE: axis( dim( 1 ), label( "age" ) ) GUIDE: axis( dim( 2 ), label( "alcuse" ) ) GUIDE: axis( dim( 3 ), label( "id" ), opposite() ) SCALE: linear( dim( 1 ) ) SCALE: linear( dim( 2 ) ) SCALE: cat( dim( 3 ) ) ELEMENT: point( position( ( X1_Var * Y_Var * Panel_Var0 * 1 ) ) ) END GPL.

Any suggestions would be appreciated.

Best,

Christine Wells Statistical Consulting Group UCLA Academic Technology Services http://www.ats.ucla.edu/stat/


[text/html]


Back to: Top of message | Previous page | Main SPSSX-L page