contourpdf: Plotting functions (eawagSummerSchoolTools)

Description Usage Arguments Value Author(s) See Also

View source: R/Plot.R

Description

Contour plot of a two-dimensional probability density function.

Usage

1
2
contourpdf(calcpdf_mv,norm=T,xlim=c(-3,3),ylim=c(-3,3),
           levels=c(0.05,0.5,0.95),res=20,lty="solid",...)

Arguments

calcpdf_mv

function to calculate the log pdf values at a set of locations specified by its first argument

norm

TRUE if the probability density is normalized, FALSE if integration over the domain given by xlim and ylim should be used for normalization

xlim

bounds of the integration range for the first variable

ylim

bounds of the integration range for the second variable

levels

vector of probabilities to be contained in the contour line

res

resolution of grid used to countour (number of points in each dimension)

lty

line type of contour lines

...

additional arguments passed to calcpdf_mv

Value

Contour plot. Returns integral of the probability density over the given range at the given resolution.

Author(s)

Peter Reichert <peter.reichert@eawag.ch>

See Also

Plot.res, Plot.vars, Plot.chains, Plot.margs


baccione-eawag/EawagSchoolTools documentation built on Dec. 19, 2021, 6:38 a.m.