Hello,
Apologies if this has already been resolved in a previous post, but I could not find one - is it possible to remove whiskers from graph box? I just want to show median and IQR (there is an additional category - hospitals - with much longer whiskers that I want to add, which lengthens the axis and makes the other groups (health centre etc.) much harder to read.
stripplot does not seem to be an option because it does not accept weights.
Second, the axis(range...) option does not seem to be making any edits to the axis on the graph. I would appreciate any tips for getting the code to work.
Many thanks for your help,
Francesca
Code for graph:
#delimit ;
graph hbox n_anydr n_midw n_nurse n_sba if sample==1 & factype>1 [pweight=sample_wgt],
by(factype, cols(1) note("")) over(ftype, axis(range(0(2)40)))
noout note("")
box(1, color(navy) )
box(2, color(ebblue))
box(3, color(ebblue*0.4))
box(4, color(dkgreen))
plotregion(color(white) ifcolor(white))
legend(order( 1 "Doctors" 2 "Midwives" 3 "Nurses" 4 "Total SBA") rows(1) size(small))
medtype(cline)
xsize(1) ysize(1.2)
;
#delimit cr
Related Posts with Remove whiskers from box plot
Bayesian multilevel parametric survival modelHi, I'm trying to figure out if a Bayesian multilevel parametric survival model can fit for the foll…
Can -margins- after -mixed- with small sample inference show t-tests rather than z-tests?Hello everyone. After using one of the dfmethod() options for -mixed- to obtain small-sample inferen…
two-y-axeshello, I try to show my results based on two y-axes but the results are not satisfactory in the grap…
Testing the Equality of the Regression Coefficients After PPMLHDFEI tried to estimate a PPML gravity model of bilateral trade with country-time fixed effects by -ppml…
Creating a rate grouped by another variableHello, I have a large dataset (27 vars, 1,048,575 obs) that contains data on malaria insecticide t…
Subscribe to:
Post Comments (Atom)
0 Response to Remove whiskers from box plot
Post a Comment