Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.kdenv

Plot a kdenv object.


Description

Plots an object from kdest of class kdenv.

Usage

## 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 non-rejection 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

Examples

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

smacpod

Statistical Methods for the Analysis of Case-Control Point Data

v2.1.1
GPL (>= 2)
Authors
Joshua French [aut, cre] (<https://orcid.org/0000-0002-9708-3353>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.