View source: R/subplot_title.R
subplot_title | R Documentation |
Function to add a subplot title to a plotly subplot
subplot_title(plot, title, .x = 0.1, .y = 1)
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 |
plotly with subtitle
{ quickplot <- plotly::plot_ly(mtcars, x = ~ carb, y = ~ disp, type = "bar") subplot_title(quickplot, "Cars subplot") }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.