Skip to contents

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)