[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: Cannot simultaneously use weight and marker label options in scatter plot?
Try superimposing the graphs:
scatter price mpg [w=rep78], msymbol(Oh) || ///
scatter price mpg [w=rep78], ms(none) mlabel(foreign)
> I would like to display a scatter plot in which (1) the markers are
> labeled with observation identifiers and (2) the size of each
> marker is
> scaled according to its weight in a weighted least squares regression.
> I can display the plot with either option alone, but for some reason,
> when I try to use both simultaneously, the marker labels are displayed
> properly, but the markers are no longer scaled.
> Here's a simple program that illustrates the problem, using the Stata
> user manual auto dataset:
> clear all
> use http://www.stata-press.com/data/r8/auto.dta
> collapse (mean) price mpg (count) rep78, by(foreign)
> scatter price mpg [w=rep78], mlabel(foreign)
> scatter price mpg [w=rep78], msymbol(Oh)
> scatter price mpg [w=rep78], msymbol(Oh) mlabel(foreign)
* For searches and help try: