Learn R Programming

RCBR (version 0.6.2)

plot.KW2: Plot a KW2 object

Description

Given a fitted model by the rcbr NPMLE procedure plot the estimated mass points

Usage

# S3 method for KW2
plot(x, smooth = 0, pal = NULL, inches = 1/6, N = 25, tol = 0.001, ...)

Value

nothing (invisibly)

Arguments

x

is the fitted NPMLE object

smooth

is a parameter to control bandwidth of the smoothing if a contour plot of the estimated density is desired, default is no smoothing and only the mass points of the discrete estimate are plotted.

pal

a color palette

inches

as used in symbols to control size of mass points

N

scaling of the color palette

tol

tolerance for size of mass points

...

other arguments to pass to symbols, notably e.g. add = TRUE