Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Show variable names instead of variable labels

771 views
Skip to first unread message

Miguel

unread,
Dec 20, 2010, 5:17:53 AM12/20/10
to
Hi,

I need to show variable names in scatterplot instead of variable
labels, because variable labels are too long and they overlap. It's
possible without delete one by one the variable labels?

Thanks!

Andy W

unread,
Dec 20, 2010, 9:20:03 AM12/20/10
to

Its a pretty trivial task to remove the labels with syntax. Typically
you would use

variables labels V1 'LABEL HERE'.

But to remove the label you can either just not include quotes or use
an empty quote.

variable labels V1.
variable labels V2 "".

If you include multiple variables in one variable labels command it
appears you must include the empty quotes (or its treats your next
variable name as a label).

variable labels
V1 ""
V2 ""
.

Bruce Weaver

unread,
Dec 20, 2010, 10:01:17 AM12/20/10
to

Alternatively, you could use the GGRAPH/GPL version of the scatter-
plot (i.e., the Chart Builder in the GUI). It allows you to specify
axis labels. Here's an example using the Cars.sav data file that
comes with SPSS.

* Chart Builder.
GGRAPH
/GRAPHDATASET NAME="graphdataset" VARIABLES=horse accel
MISSING=LISTWISE REPORTMISSING=NO
/GRAPHSPEC SOURCE=INLINE.
BEGIN GPL
SOURCE: s=userSource(id("graphdataset"))
DATA: horse=col(source(s), name("horse"))
DATA: accel=col(source(s), name("accel"))
GUIDE: axis(dim(1), label("Horsepower"))
GUIDE: axis(dim(2), label("Acceleration"))
ELEMENT: point(position(horse*accel))
END GPL.

The actual variable names are HORSE and ACCEL; the axis labels that
will appear on the plot are "Horsepower" and "Acceleration" (or
whatever you put there instead).

HTH.

--
Bruce Weaver
bwe...@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/Home
"When all else fails, RTFM."

0 new messages