powered by
Plot Probability Density Function Values
plot_pdf(x, y, ...)
No return value, this function generates a plot in the current graphics device.
values
probability density values y = f(x)
y = f(x)
passed to plot()
plot()
Plots the density values as a curve with the lower vertical limit set to 0.
x <- seq(-2, 2, len = 100) y <- dnorm(x) plot_pdf(x, y)
Run the code above in your browser using DataLab