Code:
twoway line listed_domestic year || bar mcap_bil_usd year, yaxis(2) barwidth(.75)
In the plot, blank space is shown from 1970-1974 since data is available from 1975. How do I remove that blank space i.e. start the graph from 1975?
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input long year double(listed_domestic mcap_bil_usd) 1975 3422 194.100171148777 1976 3428 157.19968158006668 1977 2877 139.13697683811188 1978 3288 236.03695690631866 1979 3171 234.20436120033264 1980 3241 231.95478951931 1981 3244 196.1764224767685 1982 3170 185.80165040493011 1983 3111 224.0923033952713 1984 3218 270.100231051445 1985 3193 461.6768672466278 1986 3324 807.946816444397 1987 3475 816.0708112716675 1988 3249 1026.451008796692 1989 3275 1441.8436336517334 1990 3316 1409.0109004974365 1991 4278 1597.3958539962769 1992 4096 1395.0458869934082 1993 4379 1781.5791530963033 1994 3800 2103.305383119732 1995 5085 2634.7207982726395 1996 5322 3227.5260013584048 1997 5824 3991.5663554668427 1998 5639 3499.5871432870626 1999 6363 5302.511682383716 2000 6855 5538.939034000039 2001 7626 4547.681827552617 2002 7442 3682.3636319358193 2003 7284 5292.589614300814 2004 3883 6059.987166102976 2005 3499 6323.672760486603 2006 7036 8596.499108314514 2007 7550 10511.337663650513 2008 7584 5191.032473564148 2009 7341 6900.2222266197205 2010 7190 6705.177469730377 2011 7308 5601.655090332031 2012 7144 6332.388786554337 2013 7107 7978.493138551712 2014 6810 7227.137099504471 2015 6655 6313.031332492828 2016 5653 2956.075694322586 2017 5167 3861.1491498947144 2018 4989 3040.0976524353027 end
0 Response to Making line plot visible over bars
Post a Comment