[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: scatterplot with points labeled with names of variables?
One way would be to use the added text option (help added text options):
keep in 1
scatter mpg gear, text(`=mpg' `=gear' "MPG, Gear Ratio", placement(2)) ///
|| scatter price weight, text(`=price' `=weight' "Price, Weight",
xscale(off) yscale(off) legend(off)
> -----Original Message-----
> From: email@example.com [mailto:owner-
> firstname.lastname@example.org] On Behalf Of Christopher W. Ryan
> Sent: Monday, November 13, 2006 2:24 PM
> To: Statalist
> Subject: st: scatterplot with points labeled with names of variables?
> I want to try producing overlaid scatterplots, in which each overlaid
> graph is a scatterplot of two variables, using data from just one
> observation. In otherwords, each individual scatterplot would consist
> of just one point. Since I have 8 variables, graphing them in pairs
> would produce 4 individual scatterplots which, when overlaid, would
> produce a graph with just 4 points, representing data from just one
> Each variable is measured on the same -10 to +10 scale.
> The axes would have to be blank, since for each visible point, the axes
> would be of two different variables.
> I would like to label each point with the two variables that generated
> it, like this (using X as the msymbol)
> X (var1,var2)
> X (var3,var4)
> X (var5,var6)
> I was able to produce the graphs just fine, but I don't know if there is
> a way to make the variable names appear in pairs as labels for the
> points. Any ideas?
* For searches and help try: