Hello,
I am currently using slideplot to make stacked bar graphs but my current problem is that the category by labels (x axis) run into each other. Below is a quick example
Which outputs the following graph. 
In this example, because there are a relatively small amount of categories, the x axis labels don't touch and the graph is easily readable. However, in my other dataset there are a larger amount of categories and the x axis labels blend in to each other. I've looked around and can't seem to figure it out. I've tried using the xlab(,angle(90)) but that doesn't work because I assume the x axis is technically not an x axis and I've also tried label(angle(90)) but that seems to also not be a valid option.
Ultimately, I would like to output a stacked twoway bar chart and am open to other suggestions, but it seems that, so far, slideplot is the easiest and doesnt require a lot of work calculating boundaries if I could just get this label issue resolved.
I have also figured out how to do it in catplot but am stuck in the same part of rotating the x axis labels.
I am currently using slideplot to make stacked bar graphs but my current problem is that the category by labels (x axis) run into each other. Below is a quick example
Code:
use http://www.stata-press.com/data/r8/voter.dta slideplot bar candidat [w=frac], neg(2) pos(3 4) by(inc)
In this example, because there are a relatively small amount of categories, the x axis labels don't touch and the graph is easily readable. However, in my other dataset there are a larger amount of categories and the x axis labels blend in to each other. I've looked around and can't seem to figure it out. I've tried using the xlab(,angle(90)) but that doesn't work because I assume the x axis is technically not an x axis and I've also tried label(angle(90)) but that seems to also not be a valid option.
Ultimately, I would like to output a stacked twoway bar chart and am open to other suggestions, but it seems that, so far, slideplot is the easiest and doesnt require a lot of work calculating boundaries if I could just get this label issue resolved.
Code:
use http://www.stata-press.com/data/r8/voter.dta catplot candidat inc [w=frac], stack asyvars recast(bar)
Comment