|
Art Kendall wrote:
>
>
> I thought I had seen this topic before on this list but did not find it
> in the archives.
>
> If I have 6 groups of cases, I would like to have a single graphic with
> 7 boxplots. A boxplot for all cases, and 6 for each of the subgroups.
>
>
> Art Kendall
> Social Research Consultants
>
>
Hi Art. You could always make a copy of the original dataset, and in the
copy, set the group variable equal to another (constant) value for all
cases. Then stack the original data and the copy, and add a value label
(e.g., "All cases") for the new value. Here's an example using the "Cars"
data.
new file.
dataset close all.
get file = "C:\Program Files\SPSSInc\PASWStatistics17\Samples\Cars.sav".
dataset name cars1 .
freq origin. /* where car was manufactured .
dataset copy cars2 .
dataset activate cars2 .
compute origin = 4.
exe.
ADD FILES /FILE=*
/FILE='cars1'.
exe.
dataset close cars1.
add value labels
origin 4 'All countries'
.
EXAMINE VARIABLES=weight BY origin
/PLOT=BOXPLOT
/STATISTICS=NONE
/NOTOTAL.
HTH.
Bruce
-----
--
Bruce Weaver
bweaver@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/
"When all else fails, RTFM."
NOTE: My Hotmail account is not monitored regularly.
To send me an e-mail, please use the address shown above.
--
View this message in context: http://old.nabble.com/boxplots-for-total-and-subgroup-in-same-chart-tp28549650p28551799.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.
=====================
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
|