Hi all,

I am new to STATA and I am trying to reproduce these two graphs I made in SAS on here (I know this seems redundant but I need it on STATA and can't figure it out)


I have a categorical variable called 'category' and want to show the percentage of each level of 'category' by 'scenario' (second variable) in a stacked horizontal bar graph. See below:
Array


The second graph I need is a cumulative distribution of my discrete variable "TP" also by 'scenario.' See below:
Array

Any help would be much appreciated! Thank you!