Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 65037

Controlling Connected Graph Tick Location for Monthly Data with Yearly Label

$
0
0
Hopefully a simple question re: a connected line graph.

I've got monthly data for one Y variable from May 2013 to July 2016, and I would like to have the x axis have ticks indicating the end/beginning of a year (December/January), and the label just state the year. So "2015" would appear underneath and in the center between two tick marks. The default seems to have the tickmarks directly above the year, but that's actually refers to the July observation, which isn't what I want.

Here's what I'm trying:
twoway connected yvar month, title(Panel B: New registrations each month) ytitle("") graphregion(color(white)) bgcolor(white) xlabel(, format(%tmCY) )

The "month" var is formatted as %tm, but I don't like the "2014m7" appearance. So how do I get the ticks offset?

Viewing all articles
Browse latest Browse all 65037

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>