Date: Tue, 22 May 2007 07:50:11 -0500
Reply-To: "Peck, Jon" <peck@spss.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: "Peck, Jon" <peck@spss.com>
Subject: Re: repeated scatterplots
In-Reply-To: A<E08B564BAA29FE4F8EC8BAF42FE0A01F0209C910@bubsex02.cen.csin.cz>
Content-Type: text/plain; charset="UTF-8"
To get the paneling effect, add something like this to your graph command
/panel rowvar = mygroupingvar
If you have a lot of groups, you will probably want to increase the vertical size of the plot, which you can do by just dragging the border in the Viewer.
HTH,
Jon Peck
-----Original Message-----
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of Spousta Jan
Sent: Tuesday, May 22, 2007 6:38 AM
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: Re: [SPSSX-L] repeated scatterplots
Hi Doris,
The program may look like this one:
GET FILE='C:\Program Files\SPSS\Cars.sav'.
Define myscatte ()
!let !vars = "engine horse weight"
!do !i !in ( !vars ).
GRAPH
/SCATTERPLOT(BIVAR)=!i WITH accel
/MISSING=LISTWISE .
!doend
!enddefine.
myscatte .
Just replace the names of variables (here engine horse weight, and
accel).
Regarding the second question, I think you can produce only by editing
the images in a graphic editor or perhaps in Word.
HTH
Jan.
-----Original Message-----
From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of
Doris Gerstner
Sent: Tuesday, May 22, 2007 12:58 PM
To: SPSSX-L@LISTSERV.UGA.EDU
Subject: repeated scatterplots
Hi,
I read a message this morning which in principle refers also to my
problem (but the answer doesn`t help me because I don`t use Python).
I have lots of potential, but not consecutive predictors (t2pain, t2pfi,
t2vital etc) and I want to create scatterplots of each of these
predictors vs the dependent variable e.g.
GRAPH
/SCATTERPLOT(BIVAR)=t2pain WITH logt2max
/MISSING=LISTWISE .
Is there a possibility to avoid to repeat this step 29 times (for the
reminder 29 variables)? and to present the scatterplots of groups
(demograph, economic...) of predictors in one table (like the first
column in the matrix scatterplot)? Please note, I have only very limited
experience with macros.
Many thanks in advance for your help, Doris