densPlot: Kernel Density Plot

Description Usage Arguments Value Examples

View source: R/density.R

Description

Kernel Density Plot

Usage

1
2
3
densPlot(x, rug = TRUE, col = "#45a3ffCC", border = "#000f1e",
  rug.col = "#62a3e2", main.title = "Density Plot",
  kernel = "optcosine", n = 1024)

Arguments

x

the numeric vector of interest

rug

should a rug of the data be plotted underneath the density? Defaults to TRUE.

col

The fill color of the density curve. Defaults to "#45a3ffCC"

border

The border color of the density curve. Defaults to "#000f1e"

rug.col

The color of the data rug. Defaults to "#62a3e2".

main.title

Defaults to "Density Plot".

kernel

one of the kernels from density(). Defaults to "optcosine"

n

number of points to generate the density grid. Defaults to 1024.

Value

a plot

Examples

1
densPlot(rnorm(1000))

abnormally-distributed/Bayezilla documentation built on Oct. 31, 2019, 1:57 a.m.