plotMonthly: Plot monthly averages

Description Usage Arguments Author(s) Examples

View source: R/plotMonthly.r

Description

A function to plot diurnal patterns for each individual month.

Usage

1
2
3
4
5
plotMonthly(data, var, legend = FALSE, legendSide = NULL, type = "o",
col = 1, lty = 1, yaxt.out = NULL, yaxt.in = NULL, xaxt.out = NULL,
xaxt.in = NULL, axis1.in = FALSE, at1.in = NULL, axis2.in = FALSE,
at2.in = NULL, axis1.out = FALSE, at1.out = NULL, axis2.out = FALSE,
at2.out = NULL, ...)

Arguments

data

The data frame.

var

The variable to plot. The default is CO2 flux.

legend

Logical. If TRUE a legend will be plotted for each subplot.

legendSide

The side at which to plot the legend.

type

The type of plot. The default is a point-line.

col

The color of the line/points.

lty

The type of line.

yaxt.out

Drawing the outside y ticks and labels. If 'n' then they are not drawn.

yaxt.in

Drawing the inside y ticks and labels. If 'n' then they are not drawn.

xaxt.out

Drawing the outside x ticks and labels. If 'n' then they are not drawn.

xaxt.in

Drawing the inside x ticks and labels. If 'n' then they are not drawn.

axis1.in

Drawing the inside x ticks and labels. If 'n' then they are not drawn.

at1.in

Variable to show where to draw the new ticks for the bottom axis of the inside plots.

axis2.in

Logical. If TRUE the left axis will be drawn for the inside plots.

at2.in

Variable to show where to draw the new ticks for the left axis of the outside plots.

axis1.out

Logical. If TRUE the bottom axis will be drawn for the outside plots.

at1.out

Variable to show where to draw the new ticks for the bottom axis of the outside plots.

axis2.out

Logical. If TRUE the left axis will be drawn for the outside plots.

at2.out

Variable to show where to draw the new ticks for the left axis of the outside plots.

...

Further graphical parameters.

Author(s)

Georgios Xenakis

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Close any previously open graphic devices
graphics.off()

## Load the data
data(fluxes)

## Clean the fluxes
fluxes=cleanFluxes(fluxes,sdCor=TRUE,sdTimes=3,distCor=TRUE,timesList=3,
thresholdList=list(H=c(-100,1000),LE=c(-100,1000)))	

## Plot monthly
plotMonthly(fluxes,"co2_flux",legend=TRUE,legendSide='bottomleft',type='o',
lty=2,ylim=c(-50,20),col=1,yaxt.in='n',yaxt.out='n',xaxt.in='n',xaxt.out='n',
at2.out=seq(-50,10,10),axis2.out=TRUE,at1.out=seq(0,23,2),axis1.out=TRUE,
at1.in=seq(0,23,2),axis1.in=TRUE)

## Put some text as title and axis labels
mtext(side=3,"Harwood forest",outer=TRUE,line=2,cex=1.2)
mtext(side=2,"Fc (umol m"^-2~" s"^-1~")",outer=TRUE,line=2,cex=1.2)
mtext(side=1,"Hour",outer=TRUE,line=3,cex=1.2)

Example output



FREddyPro documentation built on May 29, 2017, 7:22 p.m.