Date: Sat, 25 Jun 2011 14:05:20 -0600
Reply-To: Jon K Peck <peck@us.ibm.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Jon K Peck <peck@us.ibm.com>
Subject: Re: Dot Charts with single dot per line a la Bill Cleveland
In-Reply-To: <4E0625FB.4010606@DrKendall.org>
Content-Type: multipart/alternative;
Have you considered the error bar or dropline charts in Statistics? They
default to vertical lines, but that is easy to reverse.
Jon Peck
Senior Software Engineer, IBM
peck@us.ibm.com
new phone: 720-342-5621
From: Art Kendall <Art@DrKendall.org>
To: SPSSX-L@LISTSERV.UGA.EDU
Date: 06/25/2011 12:19 PM
Subject: Re: [SPSSX-L] Dot Charts with single dot per line a la
Bill Cleveland
Sent by: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
Thank you. Those are those are the kinds of graphs I had in mind,
Since R can be called from SPSS, do you have SPSS syntax to do this task?
Art
On 6/25/2011 2:11 PM, Thomas MacFarland wrote:
Everyone:
The dotchart() function in R will accommodate this action fairly easily if
you can not find a SPSS fix.
A simple set of R syntax (about baseball, of course!) follows:
On1stBase <- c(3,4,1,2,4,2,3,6,1,0,
+ 6,3,3,5,2,1,3,7,1,3,
+ 5,3)
On1stBase
[1] 3 4 1 2 4 2 3 6 1 0 6 3 3 5 2 1 3 7 1 3 5 3
par(ask=TRUE)
dotchart(On1stBase,
+ main="Dotchart of On1stBase",
+ xlab="On1stBase",
+ font.lab=2,
+ col="red")
Waiting to confirm page change...
Going beyond this simple example, look at
http://polisci.msu.edu/jacoby/research/dotplots/tpm/Jacoby,%20Dotplots,%20TPM%20Draft.pdf
and give attention to Figure 4 (R syntax begin on p. 11 and Figure 4 is on
the last page of this document).
Best wishes.
Tom
===================== To manage your subscription to SPSSX-L, send a
message to LISTSERV@LISTSERV.UGA.EDU (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
[text/html]
|