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
help with local macrosDear all, I would like to create several boxplots at once and combine them. i found the code below a…
Problem with Reshape on Panel DataHi all, My aim is to make variable id to be unique and I think reshape is the command instead of col…
Data which contain Multiple followups with hours variablesDear Statlist Users, Hope all you experts are doing great.I wanted to understand how to analyze the…
Number of rows and columns of subplots using xtlineHi, how can I define the number of rows/columns of subplots when using "xtline"? The options "rows(…
non-linear optimisation with linear restrictionsDear all: I need to find the B vector that minimises the following non-linear function (B-A)*IM*(B-A…
Subscribe to:
Post Comments (Atom)
0 Response to Stacked bar plot
Post a Comment