plotIRS: Plot a single IRS.

View source: R/IRSfunctions.R

plotIRSR Documentation

Plot a single IRS.

Description

plotIRS no return values.

Usage

plotIRS(
  dat,
  xvar = "deltaT",
  yvar = "Pchange",
  xlab = expression(paste(plain("Temperature change ("), degree, plain("C)"))),
  ylab = "Precipitation change (%)",
  var = "grain_DM",
  add = FALSE,
  col = "black",
  lty = 1,
  lwd = 1,
  title = NA,
  levels = NULL,
  cex = 1,
  labcex = 0.6,
  drawlabels = TRUE,
  colSc = "normal",
  xlim = NULL,
  ylim = NULL,
  xaxt = "s",
  yaxt = "s",
  legend = FALSE,
  contours = TRUE,
  stippled = TRUE
)

Arguments

dat

data.table object that contains three columns for x-, y- and z-dimension

xvar

Column name for the x-axis

yvar

Column name for the y-axis

xlab

x-axis label text

ylab

y-axis label text

add

if FALSE, starts a new plot, if TRUE, plots ontop on the current device

col

colour of contour lines, if NA, no contours are plotted

lty

line type of contour lines

lwd

line width of contour lines

title

plot title

levels

levels for contour lines

cex

font size

labcex

font size for contour labels

colSc

colour scheme defined in getColors or NULL if no filled contours should be plot

xlim

Ranges of the x- and y-axes to plot (defaults to the range specified in dat$xvar and dat$yvar)

ylim

Ranges of the x- and y-axes to plot (defaults to the range specified in dat$xvar and dat$yvar)

legend

if true adds a legend to the plot

contours

if true plots data as contours; if false, plots the data as a grid; can also be used with transparent colour plotted on top of filled contour plots, e.g. plotIRSnoaxes(dat=myDat, var="Z5", colSc=rgb(0,0,0, alpha=.2), levels=c(.5,1.5), contours=FALSE, add=TRUE)

stippled

if contours==FALSE, plot selected grid cells as stippled or hatched area

varn

Column name for the z-axis

Value

Vector of the levels used for the plot.


fronzek/IRSanalysis documentation built on Jan. 28, 2023, 2:38 a.m.