Hello everyone,
I am trying to do a horizontally stacked car plot with two over options. The main one are the districts (DEPARTAMENTODOMICILIO) and the one that I want to be stacked if (grupo_edad).
I am using the following code:
graph hbar inci2 inci3, over(grupo_edad) over(DEPARTAMENTODOMICILIO, sort(inc) label(labsize(tiny))) stack asyvars nofill legend(off) ytitle("Fallecidos COVID sospechosos y confirmados por millón") ylabel(0(1000)7000) blabel(bar,pos(i) color(white) size(tiny)) title("Mortalidad acumulada según región")
but I get this plot:
Array
and I want it to be just I bar per DEPARTAMENTO like this and each bar divided by the age category (grupo_edad)
Array
Thanks in advance!
Related Posts with Stacked bar plot
Drop observation in panel dataHi Stata Forum, I have a rather basic question on dropping observation that I cannot seems to solve…
Unexpected behaviour from $frame test: brI am thouroughly thrilled about the new -frame- concept in Stata 16, and I have been using it extens…
Conditional ttest command in StataDear colleagues. What is the appropriate Stata command to test for the assumption below? Array Tha…
Expanding a dataset with linear interpolationDear Statalist users, I am a new member and I am really glad for being here! I have a monthly pane…
Frequency tableI have monthly data from investment funds over 50 years and would like to have a table showing me ho…
Subscribe to:
Post Comments (Atom)
0 Response to Stacked bar plot
Post a Comment