Learn R Programming

RavenR (version 2.2.0)

rvn_hyd_dygraph: 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
)

Value

res a list of plot handles to dygraph plots

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

Examples

Run this code

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

Run the code above in your browser using DataLab