How to plot the data below in ggplot
with x axis to show ticks in format as 'Jan-99'.
My data is as below:
head(rates,10)
Month Repo_Rate
1 Apr-01 9.00
2 May-01 8.75
3 Jun-01 8.50
4 Jul-01 8.50
5 Aug-01 8.50
6 Sep-01 8.50
7 Oct-01 8.50
8 Nov-01 8.50
9 Dec-01 8.50
10 Jan-02 8.50
sapply(rates,class)
# Month Repo_Rate
# "character" "numeric"
I have done the plotting using xts
/zoo
/ts
packages but would like to do using ggplot
as this gives my publication quality figures.
?as.Date
, and perhaps stackoverflow.com/questions/6242955/…. Then plotting should be straight forward. stackoverflow.com/questions/26458822/… , stackoverflow.com/questions/10576095/…, and lots more examples on SO – user20650ggplot
. – akrun