plotCampaignConcSeries: plotCampaignConcSeries

Description Usage Arguments Value Author(s)

View source: R/plottingGG.R

Description

get a series of ggplots of the time series and its fits

Usage

1
2
3
4
5
6
plotCampaignConcSeries(ds, dsFits = NULL, varName = "CO2_dry", 
    colChunk = "iChunk", timeCol = "TIMESTAMP", qualityFlag = 0, 
    fTextBR = NULL, fTextTL = NULL, fTextTR = NULL, 
    plotsPerPage = 64, fileName = "", colIds = c(), 
    ggplotList = c(), ylabel = paste0(varName, " (", 
        yunit, ")"), yunit = "", isVerbose = TRUE)

Arguments

ds

data frame to plot, with collumns idCol, timeCol and varName

dsFits

tibble of results of calcClosedChamberFlux with columns <colChunk>, flux, sdFlux, model,

varName

variable to plot

colChunk

column name of identifier of one time series

timeCol

column name of the time collumn

qualityFlag

vector of length unique(ds[[colChunk]]): quality flag. For chunks where this flag is not 0, subplots are dimmed.

fTextBR

function(resFit) to add some text to the bottom right of the plot, by default the rSquared from fitting object

fTextTL

function(resFit) to add some text to the top left of the plot, by default the autocorrelation from fitting object

fTextTR

function(resFit) to add a second text to the top right of the plot, by default the provided quality flag, where it is not zero

plotsPerPage

number of plots per page

fileName

if non-zero length string, the fileName where all plots are printed to #paste0(varName,".pdf")

colIds
ggplotList

list added to each ggplot.

ylabel

y-label, may provide a string of the unit

yunit

scalar string, part of default y label

isVerbose

Value

a tibble with columns page and plot, the second column holding plotting objects dsPlots %>% rowwise() %>% do({print(.$plot)})

Author(s)

Thomas Wutzler, Oscar Perez Priego


RespChamberProc documentation built on May 2, 2019, 5:53 p.m.