search for: date_tran

Displaying 1 result from an estimated 1 matches for "date_tran".

Did you mean: date_trans
2016 Apr 18
0
Add a vertical arrow to a time series graph using ggplot and xts
...o up) to a time series plot using ggplot2 and xts. It seems that the vertical line command "geom_vline" does not work for this purpose (Correct me if I am wrong). I try the command "geom_segment" as follows, but I got an error message at the last line "Error: Invalid input: date_trans works with objects of class Date only". Sometimes the error message occurs when I run the program, sometimes it does not occur until I call the plot "p1". How could I add a vertical line to the plot? Thanks! Miao ###################### library(xts) # primary #library(tserie...