plot_pdf: Plot Probability Density Function Values

View source: R/helpers.R

plot_pdfR Documentation

Plot Probability Density Function Values

Description

Plot Probability Density Function Values

Usage

plot_pdf(x, y, ...)

Arguments

x

values

y

probability density values y = f(x)

...

passed to plot()

Plots the density values as a curve with the lower vertical limit set to 0.

Value

No return value, this function generates a plot in the current graphics device.

Examples

x <- seq(-2, 2, len = 100)
y <- dnorm(x)
plot_pdf(x, y)

psborrow2 documentation built on April 4, 2025, 12:37 a.m.