Quantcast
Channel: Difficulty annotating plot when x axis values are dates - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Alice for Difficulty annotating plot when x axis values are dates

You can do it like this:ggplot(s, aes(x=Date, y=Average, fill=Treatment)) + annotate("a)", x = as.POSIXct(-Inf, origin = '2014-10-15'), y = Inf, hjust = 1, vjust = 1)

View Article



Answer by Stibu for Difficulty annotating plot when x axis values are dates

You can use annotate to reach your goal:solitaryrecruits + annotate(geom = "text", x = as.Date("2014-10-05"), y = 25, label = "a)", fontface = "bold")The important point is that you give your...

View Article

Image may be NSFW.
Clik here to view.

Difficulty annotating plot when x axis values are dates

Here is my data frame:> s Date Average Treatment SE1 2014-10-15 4.875 1 1.63048522 2014-11-12 6.250 1 0.99552573 2014-12-11 0.250 1 0.16366344 2015-02-11 1.000 1 0.50000005 2015-03-09 0.000 1...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images