I'm graphing the following
This produces 7 different box-plots, one for each of 7 geo-regions. How can I add the count of observations for a given variable for each region to the vertical axis?
Ideally, my vertical axis would have, for each plot, the geo-region name (because I'm using 'over(geo)') and next to it, or slightly underneath, the total number of observations of 'mean_stay' for that given location. This total number is essentially the total number of observations used to generate each box plot.
I did try
(as well as putting over(geo) before) and the result is a mess and everything's illegible. I also played around by adding a
to denote the obs_count, but this counts the total number of obs. in each region with a specific "mean_stay", which is not what I want.
I know I could add a legend and place the geolocations there, while keeping the counts in the vertical axis; but I want to avoid using legends since I need each graph to be compact as I'm generating this same graph over many other by()'s , to ultimately combine them in one huge graph.
Code:
graph hbox mean_stay, over(geo)
Ideally, my vertical axis would have, for each plot, the geo-region name (because I'm using 'over(geo)') and next to it, or slightly underneath, the total number of observations of 'mean_stay' for that given location. This total number is essentially the total number of observations used to generate each box plot.
I did try
Code:
graph hbox mean_stay, over(obs_count) over(geo)
Code:
marker()
I know I could add a legend and place the geolocations there, while keeping the counts in the vertical axis; but I want to avoid using legends since I need each graph to be compact as I'm generating this same graph over many other by()'s , to ultimately combine them in one huge graph.
Comment