Learn R Programming

kdensity (version 1.1.1)

plot_helper: Helper function for the plot methods.

Description

A helper function for the plot methods that does most of the work under the hood.

Usage

plot_helper(
  x,
  range = NULL,
  plot_start = FALSE,
  zero_line = TRUE,
  ptype = c("plot", "lines", "points"),
  ...
)

Value

None.

Arguments

x

A kdensity object.

range

An optional range vector; like x in plot.default.

plot_start

Logical; if TRUE, plots the parametric start only.

zero_line

Logical; if TRUE, adds a line at y = 0.

ptype

The kind of plot to make

...

Passed to plot.default.