Closed ericmelse closed 1 year ago
I think what you want is the noprune
subpotion, that is, type olabel(0 5 10 20 40 50 58 60, noorune)
. You can also specify prune(#)
to set the pruning tolerance. The default is prune(0.1)
; for example, try prune(0.05)
.
Furthermore, also xlabel()
and ylabel()
should work, but you have to select the relevant axis, e.g., xlabel(..., axis(2))
.
ben
Qualification: apart from selecting the axis, an issue with direct use of xlabel()
and ylabel()
of course is that the positions on the axis corresponding to specific outcome values are not known; this is why there is the olabel()
option.
Dear Ben, many thanks for pointing me in the right direction, prune(0)
or noprune
does the job just fine (I do apologize for my poor help file reading, all of this is well documented):
Dear Ben, the
reldist cdf
plot control of the calibration of theolabel
and theyolabel
is rather sophisticated. As such it provides an evenly positioning of the tick marks without and with lables, like with my ects example code:which results in: But, this requires some manipulation because I have a specific purpose for the ticks as to give attention to the scores 40 and 50 ects. So, I tried this code:
which results in: This is somewhat besides what I want, because
reldist
decides which ticks get a label or not, so I tried this:which results in: Again, I am a little frustrated because, for example, why would the two axis not get 20 on that tick (plenty room for it), so I tried this code with the manual control of labels (or not) for each tick, using regular Stata syntax:
which results in: Note that
reldist gr
is not giving me any complaints about using regular Stata syntax to set the ticks and their labels in this manner, but, atreldist gr
is not processing as I expect. Like with this (rather silly) example:which results in:
So, my request is if it could be possible to control the position manually by the regular coding of tick marks and their labels (or not using " ") for
olabel
andyolabel
?