Dear Stata users,
The bar graph attached shows the proportion of variables var1 to var5 taking the value equal 1.
I would like to change the labels to x-axis in percent with the command "xlabel" instead of changing it from the graph editor.
The labels to x-axis should be like "0% 10% 20% .... 50%" instead of the currently displayed labels "0 .1 .2 .... .5"
When I run the following code:
graph hbar var1 var2 var3 var4 var5 if `tagb', ///
title("Requests in %", size(medium) span) ///
xlabel(0(20)60) scheme(s2color)
I get this error message:
xlabels(0(20)60) not allowed, xaxis1 does not exist
Can you help me please?
Is there any way to see in the command window changes I make to the graph from the graph editor?
This was possible for Stata v16 but I don't know how to do it in Stata v18.
Thank you for your help.
Chwen Chwen
The bar graph attached shows the proportion of variables var1 to var5 taking the value equal 1.
I would like to change the labels to x-axis in percent with the command "xlabel" instead of changing it from the graph editor.
The labels to x-axis should be like "0% 10% 20% .... 50%" instead of the currently displayed labels "0 .1 .2 .... .5"
When I run the following code:
graph hbar var1 var2 var3 var4 var5 if `tagb', ///
title("Requests in %", size(medium) span) ///
xlabel(0(20)60) scheme(s2color)
I get this error message:
xlabels(0(20)60) not allowed, xaxis1 does not exist
Can you help me please?
Is there any way to see in the command window changes I make to the graph from the graph editor?
This was possible for Stata v16 but I don't know how to do it in Stata v18.
Thank you for your help.
Chwen Chwen
Comment