I am trying to build a scatterplot and would like to input data in the form of percentages with the format x% both in the labels of the points and the y-axis.
My code is as follows:
Code:
twoway (scatter share_class_two Year, mlabel(share_class_two) xlabel(2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015)
. dataex
----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float Year double(recalled_class_two recalled_class_one) float(share_class_two share_class_one) 2004 38 6 .012850862 .0020290834 2005 120 2 .04058167 .0006763612 2006 120 9 .04058167 .003043625 2007 103 3 .0348326 .0010145417 2008 102 4 .03449442 .0013527224 2009 441 10 .14913765 .003381806 2010 183 10 .06188705 .003381806 2011 674 21 .2279337 .007101792 2012 228 15 .07710517 .005072709 2013 235 20 .07947244 .006763612 2014 449 27 .1518431 .009130876 2015 264 19 .08927967 .006425431 end
The resulting graph is a scatterplot with y axis labeled in the format 0 .05 .1 .15 and so on until .25. Labels on the points are again in the same format.
What I would like to do is to change both formats to be 0 5% 10% 15% and so on.
Many thanks,
Federico
0 Response to Percentages
Post a Comment