Hi to all
Im doing a bar graph to show the proportion of observations that have an atribute overal several dummy variables
My syntax is:
graph bar plot_tree_sec_10 plot_tree_sec_26 plot_tree_sec_21 plot_tree_sec_500 plot_tree_sec_17 plot_tree_sec_6 plot_tree_sec_46 plot_tree_sec_29 plot_tree_sec_47 plot_tree_sec_31 plot_tree_sec_40 plot_tree_sec_42 plot_tree_sec_39 plot_tree_sec_48 plot_tree_sec_7 , scheme(burd) ytitle(Proportion hh) blabel(bar, format(%12.2f)) legend(pos(6) row(3) ring() size(*.70) symx(*.70) symy(*.70) forcesize ) title(Species in Agrarian Plot, size(medium) position(12))
The graph works as I intended, however i have a problem with the legend. The legend for each variable is "mean of varname (ie: mean of plot_tree_sec_10").
Is there is any way of change the labels of the legend to use the varlabel??
I know that can maually change the label in the legend using: legend(label(1 "Varlabel"....)), but i dont want to do it manually since i may have to change the order of the variables several times
Thanks in advance
Im doing a bar graph to show the proportion of observations that have an atribute overal several dummy variables
My syntax is:
graph bar plot_tree_sec_10 plot_tree_sec_26 plot_tree_sec_21 plot_tree_sec_500 plot_tree_sec_17 plot_tree_sec_6 plot_tree_sec_46 plot_tree_sec_29 plot_tree_sec_47 plot_tree_sec_31 plot_tree_sec_40 plot_tree_sec_42 plot_tree_sec_39 plot_tree_sec_48 plot_tree_sec_7 , scheme(burd) ytitle(Proportion hh) blabel(bar, format(%12.2f)) legend(pos(6) row(3) ring() size(*.70) symx(*.70) symy(*.70) forcesize ) title(Species in Agrarian Plot, size(medium) position(12))
The graph works as I intended, however i have a problem with the legend. The legend for each variable is "mean of varname (ie: mean of plot_tree_sec_10").
Is there is any way of change the labels of the legend to use the varlabel??
I know that can maually change the label in the legend using: legend(label(1 "Varlabel"....)), but i dont want to do it manually since i may have to change the order of the variables several times
Thanks in advance
Comment