make_quantile_density: Make density plot with quantiles

Description Usage Arguments Examples

View source: R/make_quantile_density.R

Description

Plot the density of a numeric vector and show the different quantiles colored in areas

Usage

1
make_quantile_density(ex_vector, probs = NULL)

Arguments

ex_vector

a numeric vector from which the density should be computed

probs

a numeric vector giving the quantile (default: NULL but from 0 to 1 by step of 0.1)

Examples

1
2
3
4
5
vec = rnorm(1000)

gg = make_quantile_density(vec)

gg

Rekyt/divr documentation built on April 1, 2020, 5:35 a.m.