View source: R/plotly_double_yaxis.R
plotly_double_yaxis | R Documentation |
Plotly double y axis
plotly_double_yaxis( data, type, mode, x, yaxis1, yaxis2, legend1, legend2, xaxis_title, yaxis1_title, yaxis2_title, main_title, source )
data |
data.frame |
type |
type of plot (for instance scatter) |
mode |
plotly mode (for instance lines) |
x |
character string with column to plot on the x axis |
yaxis1 |
character string with column to plot on the y axis 1 (i.e. on the left hand side) |
yaxis2 |
character string with column to plot on the y axis 2 (i.e. on the right hand side) |
legend1 |
legend for yaxis1 |
legend2 |
legend for yaxis2 |
xaxis_title |
title on the x axis |
yaxis1_title |
title on y axis 1 |
yaxis2_title |
title on y axis 2 |
main_title |
title on top of the plot |
source |
source passed on to plotly::plot_ly() |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.