rvn_hyd_dygraph: Read in Raven Hydrograph file

View source: R/rvn_hyd_dygraph.R

rvn_hyd_dygraphR Documentation

Read in Raven Hydrograph file

Description

rvn_hyd_dygraph plots modeled vs observed hydrographs when supplied with hydrograph data structure read using rvn_hyd_read

Usage

rvn_hyd_dygraph(
  hy,
  timezone = "UTC",
  basins = "",
  main = NULL,
  figheight = 400
)

Arguments

hy

hydrograph data structure generated by rvn_hyd_read routine

timezone

data timezone; defaults to UTC

basins

list of subbasin names from hydrograph file. Each subbasin creates separate dygraph plots

main

dygraph title to override the default (applied to all dygraphs)

figheight

height of figure, in pixels

Value

res a list of plot handles to dygraph plots

Examples


# read in RavenR sample hydrographs data
hy <- rvn_hydrograph_data

# view contents for subbasin 36 as dyGraph
dyplots <- rvn_hyd_dygraph(hy,basins="Sub36")
dyplots

rvn_hyd_dygraph(hy,basins="Sub36", main="test title")

# view contents for all basins in hydrograph data
rvn_hyd_dygraph(hy)


rchlumsk/RavenR documentation built on April 19, 2024, 5:15 a.m.