I have a dataset of frequencies by year, for 3 categories, as shown in the following example:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float year double Cat_1 float(Cat_3 Cat_2) 2004 454 5 19 2005 791 6 34 2006 968 11 32 2007 1020 15 18 2008 1131 12 20 2009 1169 7 59 2010 1879 18 39 2011 2020 22 36 2012 2302 16 53 2013 2610 18 59 2014 3035 25 52 2015 3530 17 68 2016 4248 29 80 2017 5054 24 81 2018 6297 37 101 2019 8383 37 120 end
Code:
graph hbar Cat_1 Cat_2 Cat_3, over(year) stack percent
I know in spreadsheets sometimes people artificially resize the height of the bar for the most prevalent category, but Stata does not have an option for that and I do not believe that this would be a good thing to do.
I am wondering if someone has suggestions on how to effectively visualize my data.
0 Response to Bar chart when one category is extremely frequent
Post a Comment