plot.kdenv: Plot a 'kdenv' object.

View source: R/plot.kdenv.R

plot.kdenvR Documentation

Plot a kdenv object.

Description

Plots an object from kdest of class kdenv.

Usage

## S3 method for class 'kdenv'
plot(
  x,
  ...,
  shadecol1 = "darkgrey",
  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

Color for min/max tolerance envelopes generated under the random labeling hypothesis. The default is a dark grey.

shadecol2

Shade color for non-rejection envelopes. The default is "lightgrey".

main

A main title for the plot. The 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. The shaded areas indicate the tolerance envelopes constructed in x for tolerance level level and the min/max envelopes constructed under the random labeling hypothesis.

See Also

plot.fv

Examples

data(grave)
kdenv = kdest(grave, nsim = 19, level = 0.9)
plot(kdenv)
plot(kdenv, legend = TRUE)

smacpod documentation built on Sept. 22, 2023, 1:06 a.m.

Related to plot.kdenv in smacpod...