R/helper_plotly_title.R

# Function for positioning the titles with the ggplotly graphs

helper_plotly_title <- function(plot){

  title_info <- list(
    text = plot$labels$title,
    xref = "paper",
    yref = "paper",
    yanchor = "bottom",
    xanchor = "center",
    align = "center",
    x = 0.5,
    y = 1,
    showarrow = FALSE
  )

  return(title_info)

}

Try the ggResidpanel package in your browser

Any scripts or data that you put into this service are public.

ggResidpanel documentation built on June 1, 2019, 1:04 a.m.