View source: R/plot_hydro_plotly.R
plotly_hydro | R Documentation |
Create hydroplot using plotly
plotly_hydro(df, dates, flow, rain, right_label, left_label)
df |
data frame/flat data |
dates |
date time format |
flow |
flow data (numeric) |
rain |
rain data (numeric) |
right_label |
text for right label |
left_label |
text for left label |
plotly object
## Not run:
library(dataplot)
library(plotly)
rainfall <- dataplot::rainfall
plotly_hydro(
df = rainfall, dates = rainfall$`Date Time`,
flow = rainfall$Discharge,
rain = rainfall$`Rainfall depth (mm)`,
right_label = "rainfall",
left_label = "discharge"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.