I have data like
data = as.data.frame( rbind( c("1492", "Columbus sailed the ocean blue"),
c("1976", "Americans listened to Styx"),
c("2008", "financial meltdown. great.")
))
and I want to build a plot in ggplot2
that will display an arrow for time aes(x=$V1)
and text for aes(label=$V2)
. It sounded pretty simple until I tried to draw it.
update: I didn't write it but you need to do as.Date("1492", format="%Y")
to reproduce correctly.
NB: Solutions given below only deal with events that occur at a specific date -- not timelines with "periods" or "eras".
See Question&Answers more detail:os