I'm using -graph bar- to graph a couple of percentages against the year they were observed. -graph bar- treats the year like a categorical variable, but I would like to treat it as numeric, because the years are not evenly spaced. (There are 4 years between most observations, and then 6 between the last 2.) Is there a variant of graph bar that will treat the x variable as numeric and space it accordingly? Thanks!
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float startyear double(pctyearroundsingletrack pctyearroundmultitrack) 2000 3.6 2.4999999999999996 2003 4.3 1.2000000000000002 2007 4.4 1.0999999999999996 2011 3.2 .8999999999999995 2017 2.5 .5 end graph bar pctyearroundsingletrack pctyearroundmultitrack , over(startyear)

Comment