Ma_V wrote:
> I have a time series plot that I constructed using the "twoway" function.
> My question is the following: I have daily data, but I just want month and
> year (and not day) to show up in the x-axis.
> Does anyone know how to do this?
If you're not doing so already, you might want to use -twoway tsline- to
graph your time-series data. Then, you can use the -format- suboption
within the -tlabel- option to format the labels on the time axis (x-axis).
For example:
. webuse sp500
. tsset date
. twoway tsline high, tlabel(, format(%dM/CY))
This will give you labels with month and year instead of day/month/year.
The -format- option will also work with labels in other -twoway- commands
if you don't want to use -twoway tsline-:
. twoway scatter high date, xlabel(, format(%dM/CY))
Derek Wagner
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/