# Center Labels in ggplot2
# load my basic toolset
#
#' ggcl() add to ggplot call to center labels
#' @keywords default library
#' @export
#' @examples
#' ggcl()
ggcl<-function(){
ggplot2::theme(plot.title=element_text(hjust=0.5),plot.subtitle=element_text(hjust=0.5))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.