Learn R Programming

rLakeAnalyzer (version 1.11.4.1)

lake.number.plot: Plots time series of Lake Number

Description

Generates a time series plot of Lake Number for appropriately formatted data. See lake.number for more details on Lake Number and reference.

Usage

lake.number.plot(wtr, wnd, wh, bth)

Arguments

wtr

Data frame of water temperature loaded with load.ts

wnd

A data frame containing hypsometric data. Loaded using load.bathy

wh

A value indicating the height of the anemometer above lake surface in meters. This value must be specified, there is no default.

bth

A data frame containing hypsometric data. Loaded using load.bathy

See Also

wtr.lineseries

Examples

Run this code
# NOT RUN {
	#Get system data file paths 
	wtr.path <- system.file('extdata', 'Sparkling.wtr', package="rLakeAnalyzer")
	bth.path <- system.file('extdata', 'Sparkling.bth', package="rLakeAnalyzer")
	wnd.path <- system.file('extdata', 'Sparkling.wnd', package="rLakeAnalyzer")

	#Load data for example lake, Sparkilng Lake, Wisconsin.
	wtr = load.ts(wtr.path)
	wnd = load.ts(wnd.path)
	bth = load.bathy(bth.path)
	wh = 1 # user specified, here as 1 m.
  
# }
# NOT RUN {
  #generate default plot
	lake.number.plot(wtr,wnd,wh,bth)
	
# }

Run the code above in your browser using DataLab