dear all,
I am graphing stacked bars by a category and somehow cannot find a way to customize the text of the legend. say the dataset looks something like this
country thing1 thing2
A .5 .5
B .3 .7
graph thing1 thing2, stack over(country)
it will then say "mean of thing1" and "mean of thing2" in the legend. I know how to turn the legend off completely. However, I'd rather like to either use the varnames directly (without "mean of"), labels, or a custom text.
I know this is probably very easy to solve but I couldn't find a solution despite looking for a long time now..
Best,
Swati
I am graphing stacked bars by a category and somehow cannot find a way to customize the text of the legend. say the dataset looks something like this
country thing1 thing2
A .5 .5
B .3 .7
graph thing1 thing2, stack over(country)
it will then say "mean of thing1" and "mean of thing2" in the legend. I know how to turn the legend off completely. However, I'd rather like to either use the varnames directly (without "mean of"), labels, or a custom text.
I know this is probably very easy to solve but I couldn't find a solution despite looking for a long time now..
Best,
Swati
Comment