Learn R Programming

amber (version 1.0.3)

plotFluxnetStats: Plots that show statistical metrics for FLUXNET sites

Description

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

Usage

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

Run this code
# NOT RUN {
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')

# }

Run the code above in your browser using DataLab