add_dens_polygon: Add a kernel density polygon

View source: R/plot_cons_plans.R

add_dens_polygonR 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?


metafolio documentation built on Oct. 21, 2023, 1:06 a.m.