plotly_hydro: Create hydroplot using plotly

View source: R/plot_hydro_plotly.R

plotly_hydroR Documentation

Create hydroplot using plotly

Description

Create hydroplot using plotly

Usage

plotly_hydro(df, dates, flow, rain, right_label, left_label)

Arguments

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

Value

plotly object

Examples

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

eppofahmi/dataplot documentation built on Jan. 22, 2025, 1:14 a.m.