plotFluxnetStats: Plots that show statistical metrics for FLUXNET sites

Description Usage Arguments Value Examples

View source: R/plotFluxnetStats.R

Description

This function plots statistical metrics for the comparison against FLUXNET data.

Usage

1
2
3
plotFluxnetStats(inputDir, outputDir = FALSE, mod.id = "CLASSIC",
  variableNames = c("GPP", "RECO", "NEE", "RNS", "HFLS", "HFSS"),
  plot.width = 12, plot.height = 8)

Arguments

inputDir

A string that gives the location of text files produced by scores.fluxnet.csv, e.g. '/home/project/study'.

outputDir

A string that gives the output directory, e.g. '/home/project/study'. The output will only be written if the user specifies an output directory.

mod.id

A string that identifies the source of the reference data set, e.g. 'CLASSIC'

variableNames

A string of six variables that should be plotted. Default is set to c('GPP', 'RECO', 'NEE', 'RNS', 'HFLS', 'HFSS').

plot.width

Number that gives the plot width, e.g. 12

plot.height

Number that gives the plot height, e.g. 8

Value

Figures that show statistical metrics produced by the function scores.fluxnet.csv. The function expects six input variables.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
library(amber)
library(classInt)
library(doParallel)
library(foreach)
library(Hmisc)
library(latex2exp)
library(ncdf4)
library(parallel)
library(raster)
library(rgdal)
library(rgeos)
library(scico)
library(sp)
library(stats)
library(utils)
library(viridis)
library(xtable)

inputDir <- paste(system.file('extdata', package = 'amber'), 'scores', sep = '/')
plotFluxnetStats(inputDir, outputDir = FALSE, mod.id = 'CLASSIC.CRUJRAv2')

amber documentation built on Aug. 28, 2020, 5:08 p.m.