Hi,
I am plotting time series by ggplot2, but I believe that my question
applies to other plotting tool as well.
I want to make my x-axis the quarterly scale, e.g:
2000Q1 2000Q2.
However, scale_x_date and date_format(%m/%d) support all time formats
BUT QUARTERs
Try this code, this may get a solution close to what you need. The advantage
with this code is that you specify the text you want to appear on the xaxis.
The dates have to be supplied as text formats, and located on the xaxis using
the axis and at commands. the at command allows for
Dear jpm, have attached a simpler example, hope this helps. Regards.
plot(0:100,pch=,xaxt=n,)
axis(1, at=1,lab=c(abcd),cex.axis=1,font=4)
axis(1, at=20,lab=c(efgh),cex.axis=1,font=4)
axis(1, at=60,lab=c(ijkl),cex.axis=1,font=4)
On Tuesday, October 14, 2014 11:48 AM, Franklin Mairura
On Tue, Oct 14, 2014 at 3:36 AM, jpm miao miao...@gmail.com wrote:
Hi,
I am plotting time series by ggplot2, but I believe that my question
applies to other plotting tool as well.
I want to make my x-axis the quarterly scale, e.g:
2000Q1 2000Q2.
However, scale_x_date and
4 matches
Mail list logo