You get what rcs (right!) Suggested by default, using zoo as a graph with lines and the same axis:
R> library(zoo) R> zdf <- zoo(df$val, order.by=df$date) R> plot(zdf) R>
The help(plot.zoo) examples show that for indexing dates, itβs better, basically, which rcs showed you, but with additional formatting through, say,
R> fmt <- "%Y-%m"
If you multiply at and lab , you will also get fewer ticks.
source share