subplot_title: Function to add a subplot title to a plotly subplot

View source: R/subplot_title.R

subplot_titleR Documentation

Function to add a subplot title to a plotly subplot

Description

Function to add a subplot title to a plotly subplot

Usage

subplot_title(plot, title, .x = 0.1, .y = 1)

Arguments

plot

plotly subplot

title

title of subplot

.x

Numeric position of subplot title relative to x-axis

.y

Numeric position of subplot title relative to y-axis

Value

plotly with subtitle

Examples

{

quickplot <- plotly::plot_ly(mtcars,
x = ~ carb,
y = ~ disp,
type = "bar")

subplot_title(quickplot, "Cars subplot")

}

dpowerstp/plotlywrappers documentation built on May 3, 2022, 10:29 p.m.