Colleagues,
I'm trying to generate a presentable box plot for the attached variable. yscale(log) produces rather meagre results:

I'm trying to follow the FAQ on creating box plots with logarithmic scale, and I'm using the mylabels (SSC). I drafted the following code:
which produces:

The obtained box plot looks slightly more like the one suggested in the FAQ but it's far from perfect. Consequently, I was wondering if someone could advise me how should I adjust the mylabels syntax in order to obtain nice 8 - 10 labels that would highlight the distribution of the attached data and spread nicely across the graph. With respect to the attachment, the data is in tab delimited format as, oddly, I couldn't attach dat or csv file.
I'm trying to generate a presentable box plot for the attached variable. yscale(log) produces rather meagre results:
I'm trying to follow the FAQ on creating box plots with logarithmic scale, and I'm using the mylabels (SSC). I drafted the following code:
Code:
// Create nice log scale clonevar logmeasure = measure replace logmeasure = log10(measure) // Define labels mylabels 0(20)100 500(2000)10000 15000(30000)115963, /// myscale(log10(@)) local(labels) // Graph box plot with population and area size graph box logmeasure, /// ytitle("Measure", size(small) margin(vsmall)) /// ylabel(, labsize(vsmall) angle(horizontal)) /// plotregion(lstyle(none)) /// lines(lwidth(vthin)) /// ylabel(`labels', angle(h)) /// title("mylabels + log10") /// name(box_measure, replace) // Drop log scale var drop logmeasure
The obtained box plot looks slightly more like the one suggested in the FAQ but it's far from perfect. Consequently, I was wondering if someone could advise me how should I adjust the mylabels syntax in order to obtain nice 8 - 10 labels that would highlight the distribution of the attached data and spread nicely across the graph. With respect to the attachment, the data is in tab delimited format as, oddly, I couldn't attach dat or csv file.
Comment