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
Multiple imputation with panel data: xtset command and differing time pointsI am working with RCT data in which patients followed-up at the following time points: 2 weeks, 6 we…
help with system GMM.Hi, I am trying to estimate a model that contains 30 countries N-30 and T=20. my research question i…
Generating a 1-0 variable if any of a varlist has a valueHello, I have a dataset that includes data from a baseline survey, post-intervention survey, and on…
Out of sample predicted probabilities from probitHello everyone, I'm trying to replicate output produced by the NY Federal Reserve, but am a bit con…
weakivtest invalid syntax r(198)I am running fixed-effect instrumental variable panel regression. The data is unbalanced panel. The …
Subscribe to:
Post Comments (Atom)
0 Response to Remove whiskers from box plot
Post a Comment