plot_daily: Plot Daily Sums for a Variable in Specified Year

Description Usage Arguments Details

Description

The daily sums for a single year are plotted to the current device, scaled to all data. The daily sums are only calculated for days with complete data. Original name: sEddyProc_sPlotDailySumsY.

Usage

1
2
plot_daily(data, var, var_unc = "none", year, tf = NULL, mf = NULL,
  unit = "gC/m2/day", dts = 48)

Arguments

data

A data frame with variables to plot.

var

A (gap-filled) variable to plot.

var_unc

The uncertainty estimates for the variable.

year

The year to plot.

tf

Time conversion factor with default per second to per day.

mf

Mass conversion factor with default from umol CO2 to g C.

unit

The unit of the daily sums.

dts

A numeric integer indicating the number of daily time steps (24 or 48.)

Details

This function first computes the average flux for each day. If the original unit is not "per day", then it need to be converted to "per day" by argument tf. Furthermore, a change of the mass unit is provided by argument mf. The default parameters assume original units of umol CO2 / m2 / second and convert to gC / m2 / day. The conversion factors allow plotting variables with different units.


grahamstewart12/tidyflux documentation built on June 4, 2019, 7:44 a.m.