Set of R functions to improve Rmd outputs and default figures.
Takes an already built ggplot and add text to the right of the main plot, or as a legend underneath.
Use:
data = as.data.frame(x) data$y = runif(9, 0, 125)
superPlot = ggplot(data, aes(x, y)) + geom_point()
annotedPlot = BeNiceAnotateThatPlot(superPlot, anotation = "The beach is pretty nice\nIsn't it ?", titleAnotation = "Title", titlePlot = "Super Nice Title")
General utility function to get a specific theme