plot.kdenv: Plot a 'kdenv' object.

Description Usage Arguments Details See Also Examples

View source: R/plot.kdenv.R

Description

Plots an object from kdest of class kdenv.

Usage

1
2
3
## S3 method for class 'kdenv'
plot(x, ..., shadecol1 = "gray56", shadecol2 = "lightgrey",
  main = "", legend = FALSE)

Arguments

x

An object of class kdenv produced by kdest.

...

Additional graphical parameters passed to the plot.fv function, which is used internally for plotting.

shadecol1

Shade color for max/min envelopes. Default is a dark grey.

shadecol2

Shade color for tolerance envelopes. Default is "lightgrey".

main

A main title for the plot. Default is blank.

legend

Logical for whether a legend should automatically be displayed. Default is FALSE. See Details for an explanation of the components of the plot.

Details

The solid line indicates the observed difference in the K functions for the cases and controls. The dashed line indicates the average difference in the K functions produced from the data sets simulated under the random labeling hypothesis when executing the kdest function.

See Also

plot.fv

Examples

1
2
3
4
data(grave)
kd1 = kdest(grave, nsim = 19, level = 0.9)
plot(kd1)
plot(kd1, legend = TRUE)

smacpod documentation built on Jan. 26, 2018, 1 a.m.

Related to plot.kdenv in smacpod...