This function creates a ggplot2 plot representing the probability density function (PDF) of a normal distribution with a specified mean and standard deviation.

draw_normal(mu = 0, sd = 1, color_density = "blue")

Arguments

mu

Mean of the normal distribution. Default is 0.

sd

Standard deviation of the normal distribution. Default is 1.

color_density

Color of the density line. Default is "blue".

Value

A ggplot2 object representing the normal distribution plot.

Examples

draw_normal(mu = 0, sd = 1, color_density = "red")