unitDensity: Density plot normalized to unity

View source: R/unitDensity.r

unitDensityR Documentation

Density plot normalized to unity

Description

Create a density of inout and normalizes the maximum to be 1

Usage

unitDensity(x, ...)

Arguments

x

vector of numeric values to pass on to a density

...

any arguments to be passed on to density default

Value

list of x and y with x and y information to generate a plot

Examples

standardNormal = unitDensity(qnorm(seq(0.0001,0.9999,length = 1000),0,1))
plot(standardNormal$x, standardNormal$y, col = qp.blue, type = 'l')

qPharmetra/qpToolkit documentation built on May 24, 2023, 8:52 a.m.