Description Usage Arguments Examples
View source: R/filled.contour.lines.R
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
1 2 3 |
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() |
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]))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.