Last data update: 2014.03.03

R: Contour plot of a bivariate density function
 mycontour R Documentation

Contour plot of a bivariate density function

Description

For a general two parameter density, draws a contour graph where the contour lines are drawn at 10 percent, 1 percent, and .1 percent of the height at the mode.

Usage

```mycontour(logf,limits,data,...)
```

Arguments

 `logf` function that defines the logarithm of the density `limits` limits (xlo, xhi, ylo, yhi) where the graph is to be drawn `data` vector or list of parameters associated with the function logpost `...` further arguments to pass to contour

Value

A contour graph of the density is drawn

Jim Albert

Examples

```m=array(c(0,0),c(2,1))
v=array(c(1,.6,.6,1),c(2,2))
normpar=list(m=m,v=v)
mycontour(lbinorm,c(-4,4,-4,4),normpar)
```

Results

```
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(LearnBayes)
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/LearnBayes/mycontour.Rd_%03d_medium.png", width=480, height=480)
> ### Name: mycontour
> ### Title: Contour plot of a bivariate density function
> ### Aliases: mycontour
> ### Keywords: models
>
> ### ** Examples
>
> m=array(c(0,0),c(2,1))
> v=array(c(1,.6,.6,1),c(2,2))
> normpar=list(m=m,v=v)
> mycontour(lbinorm,c(-4,4,-4,4),normpar)
>
>
>
>
>
> dev.off()
null device
1
>

```