add_dens_polygon {metafolio}R Documentation

Add a kernel density polygon

Description

Add a kernel density polygon

Usage

add_dens_polygon(
  x,
  y,
  col,
  lwd = 1.7,
  alpha = c(0.25, 0.75),
  add_pts = FALSE,
  add_poly = TRUE
)

Arguments

x

x values

y

y values

col

Colour to add polygon with. Will be made into two levels of opacity.

lwd

lwd Line width

alpha

A numeric vector of length 2 that gives the confidence levels for the two kernel density polygons.

add_pts

Logical: should points be added?

add_poly

Add polygons?


[Package metafolio version 0.1.2 Index]