filled.contour.lines: Color Filled Contour Plot with multiple options

Description Usage Arguments Examples

View source: R/filled.contour.lines.R

Description

Create Filled Contour Plot providing a number of useful option on top of the standard functions. Number of contour levels (Nlev.con) is automatically computed as Nlev.con <- (max.level - min.level)*scaleLev

Usage

1
2
3
filled.contour.lines(x, y = NULL, z = NULL, Nlev = NULL, scaleLev = 1,
  hlines = NULL, vlines = NULL, linessize = 1, sizeaxis = 1.6,
  contlwd = 1, ...)

Arguments

x

input data, as 3d matrix or x vector

y

vector if x is a vector (default NULL)

z

vector if x is a vector (default NULL)

Nlev

Number of color levels. Using Nlev=NULL (default) means Nlev=Nlev.con (as in the description)

scaleLev

Used to compute Nlev.con, see description, (default=1)

hlines

y intercepts of horizontal lines to draw on top of the plot

vlines

x intercepts of vertical lines to draw on top of the plot

linessize

line width of the optional vertical and horizontal lines (default 1)

sizeaxis

see cex.axis (default 1.6)

contlwd

line width of the contour lines (default 1)

...

Additional arguments passed to filled.contour()

Examples

1
2
3
4
5
6
pmf <- read.table("pmf.dat")
names(pmf) <- c("zK12","zK3", "fes")
pmfmatrix <- acast(pmf, zK12 ~ zK3 )
pmf.x <- as.numeric(rownames(pmfmatrix) )
pmf.y <- as.numeric( colnames(pmfmatrix) )
fillcont.lines(pmf.x, pmf.y, pmfmatrix, Nlev=100,Nlev.con=3, color=palette.redtoblue, ylab=expression(z[K3]), xlab=expression(xy[K3]))

s-cosseddu/RMD documentation built on May 28, 2019, 10:46 a.m.