I've been following this question about the line chart, and here's a question I have had for years: why isn't there a simple syntax for drawing a simple chart?
For example, if I have two variables, A and B, why can't I just do this:
CHART/
SCATTERPLOT/
VARIABLES A B/
INCLUDE DATA LINE.
This would draw a scatterplot with variables A and B, and include the data points and a regression line. You should be able to do this from inside any procedure.
Or why not this:
CHART/
LINECHART/
VARIABLES X=A Y=B/
SCALE X=5 Y=10.
This will draw a line chart with values for A along the X axis and B along the Y axis.
Try this:
CHART/
PIECHART/
VARIABLES A.
If variable A is, for example, gender, the procedure will produce a pie chart showing number of male respondents and and female respondents.
If you wanted to be a little more sophisticated, you should be able to do this with A=gender (male and female) and B=age (young and old):
CHART/
PIECHART/
VARIABLES (A BY B) (B BY A).
First this will produce two pie charts: males (young and old) and females (young and old).
Then it will produce another two pie charts: young (male and female) and old (male and female).
There have been numerous times I have run correlations and wanted to see what a simple line looked like just to make it a little easier to visualize the overall slope of points.
Why is this sort of thing so hard to do?
/ Larry /
LARRY L. BURRISS, Ph.D., J.D.
Professor, School of Journalism
Middle Tennessee State University
Murfreesboro, TN 37132
615-898-2983
[hidden email] http://www.mtsu.edu/~lburriss ***** This page made of 100% recycled electrons *****
=====================
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