kde2dplot: produces 2d kernel density plots.

Description Usage Arguments Details

View source: R/positionals.R

Description

Creates a 2d kernel density plot.

Usage

1
2
3
kde2dplot(x, y = NULL, h, h.relative = 1, col = "red", add = FALSE,
  drawlabels = FALSE, n = 100, shade = TRUE, breaks = c(0.1, 0.25,
  0.5, 0.75, 0.9), ...)

Arguments

x

x coords

y

y coords

h

bandwidths in x,y direction

h.relative

adjustment to bandwidths relative to normal reference model. (For non-smooth data, will want < 1, probably.

col

colour to use

add

if FALSE, plot a whole new plot. Otherwise, superimpose on to existing plot.

drawlabels

A value of false will give no labels on the contours whereas true will.

n

resolution of underlying grid

shade

shade in the interiors of the contours?

breaks

breakpoints to plot contours at. These correspond to quantiles of the data - e.g. at 0.9, the space contained in the contours corresponds to an estimated 10 of the population, with the highest probability.

...

additional params for contour see codecontour

Details

Creates a 2d kernel density plot


GENEAsphere documentation built on Dec. 5, 2019, 5:11 p.m.