Hi,
I've checked the forums but come up short. My data is organized by count year and type, where type is categorical. I'm currently working with Stata to try to get stacked area graphs something like this:
Here is my code so far:
As you can probably see, it doesn't yet do what i want. There are two things I would like to do:
A 'stacked' area chart with cumulative absolute values (like above) and one which is 'stacked', but percentual (a rectangle with colored shapes showing relative amounts by year).
Please let me know if there is a way to do this with my values or if i have to create new variables with cumulative and percentual values.
Thanks
I've checked the forums but come up short. My data is organized by count year and type, where type is categorical. I'm currently working with Stata to try to get stacked area graphs something like this:
Here is my code so far:
Code:
graph twoway (area count year if type ==1, sort) /// (area count year if type ==2, sort) /// (area count year if type ==3, sort) /// (area count year if type ==4, sort) /// (area count year if type ==5, sort) /// (area count year if type ==6, sort) /// (area count year if type ==7, sort) /// (area count year if type ==8, sort)
A 'stacked' area chart with cumulative absolute values (like above) and one which is 'stacked', but percentual (a rectangle with colored shapes showing relative amounts by year).
Please let me know if there is a way to do this with my values or if i have to create new variables with cumulative and percentual values.
Thanks
Comment