I have trouble using splitvallabels. As I understand splitvallabels it splits the labels of the variable I want to show in this graph in order make the labels and the graph better readable. Running the following code however yields the attached graph.
Some bars consist of a sum of more than one selections of categories. I used the code in cases of truncated labels where only one selection was made but it did not work either. ecoInnoSince2015 is a categorical variable.
Code:
splitvallabels ecoInnoSince2015 graph hbar, /// over(ecoInnoSince2015, label(labsize(small)) relabel(`r(relabel)')) /// title(Eco-innovation in RES market since January 2015, span size(medium)) /// subtitle(Multiple choices, span size(medium)) /// ytitle("Percent of Respondents", size(vsmall))
Best,
Henriette (using Stata 16)
Array
0 Response to Trouble with splitvallabels
Post a Comment