R/helper_plotly_title.R

Defines functions helper_plotly_title

# 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)

}
goodekat/ggResidpanel documentation built on Jan. 4, 2022, 5:35 a.m.