#' my_theme
#'
#' ggplot theme
#'
#' @return theme
#' @export
#' @import ggplot2
#'
#' @examples
#' my_theme()
my_theme <- function() {
theme(axis.text.x = element_text(angle=45, hjust=1, vjust=1),
plot.title = element_text(hjust = 0.5),
panel.background = element_rect(fill="white",
color="black"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.