whichlasas.blogg.se

Stata label define
Stata label define













stata label define

Then it will widen (but never narrow) the axis range as instructed by range(). To determine the range of an axis, Stata begins with the minimum and maximum of the data. xlabel ( _,Name,Value) modifies the label appearance using one or more name-value pair arguments. xlabel (target,txt) adds the label to the specified target object. Reissuing the xlabel command replaces the old label with the new label. Xlabel (txt) labels the x -axis of the current axes or standalone visualization. You can fix this either by defining a value label for 0 as -10 or on the fly by spelling out all the text labels you want. Stata in addition wants to show a literal zero. Here is an easy guess: your value labels are defined as 5 "-5" 10 "0" 15 "5". Your axis labels are given by the option xla(, val): the rest of the syntax is irrelevant. Something like this (as an example): yalternate put numerical y axis on right (top) xalternate put categorical x axis on top (right) exclude0 do not force y axis to include 0 yreverse reverse y axis axis scale options y-axis scaling and look axis label options y-axis labeling ytitle(:::) y-axis titling See axis scale options, axis label options, and axis title options. This is my code: scatter logpgp95 avexpr || lfit logpgp95 avexpr, ylabel (4 (2)10) xscale (range (4 10)) It gives me a graph like this: I want a graph with X-axis starting at 4 and continuing to 10 and the 4 should be where the 2 is.















Stata label define