realtime_plot: Convenience function to plot realtime data

Description Usage Arguments Value Examples

View source: R/realtime_plot.R

Description

This is an easy way to visualize a single station using base R graphics. More complicated plotting needs should consider using ggplot2. Inputting more 5 stations will result in very busy plots and longer load time. Legend position will sometimes overlap plotted points.

Usage

1
realtime_plot(station_number = NULL, Parameter = c("Flow", "Level"))

Arguments

station_number

A seven digit Water Survey of Canada station number. Can only be one value.

Parameter

Parameter of interest. Either "Flow" or "Level". Defaults to "Flow".

Value

A plot of recent realtime values

Examples

1
2
3
4
5
6
7
8
## Not run: 
## One station
realtime_plot("08MF005")

## Multiple stations
realtime_plot(c("07EC002","01AD003"))

## End(Not run)

ropensci/tidyhydat documentation built on Sept. 20, 2021, 11:50 a.m.