KDE_utils: Utilities for KDE fits

KDE_utilsR Documentation

Utilities for KDE fits

Description

Utilities for KDE fits

KDE.load copies KDE distribution functions from a KDE object to a target environment.

print.kde prints the KDE object and returns it invisibly.

plot.kde draws a plot of the KDE.

Usage

KDE.load(object, envir = NULL, overwrite = TRUE)

## S3 method for class 'kde'
print(x, digits = 6, ...)

## S3 method for class 'kde'
plot(
  x,
  digits = 6,
  n = 512,
  cut = 4,
  fill.colour = "dodgerblue",
  fill.color = fill.colour,
  ...
)

Arguments

object, x

A KDE object

envir

The target environment

overwrite

If FALSE, aborts if the function names are already present in the target environment

digits

Number of digits to print

...

unused

n

number of bins

cut

cutoffs for xaxis (in steps of bw)

fill.colour, fill.color

fill color of bars

Value

KDE.load returns envir

print.kde returns x, invisibly

plot.kde returns the plot as recorded by recordPlot


utilities documentation built on July 1, 2022, 9:06 a.m.