Description Usage Arguments Value Examples

View source: R/norm_dist_plot.R

Plots a simple density histogram for a continuous variable with a normal distribution overlaid. The overlaid normal distribution has the same mean and standard deviation as the provided variable, and the plot provides a visual means to assess the normality of the variable's distribution.

1 | ```
norm_dist_plot(df, vars)
``` |

`df` |
A data.frame or tibble. |

`vars` |
A character vector of continuous variable names. |

A `ggplot`

object.

1 2 3 4 | ```
norm_dist_plot(df = iris, vars = "Sepal.Width")
norm_dist_plot(df = iris,
vars = c("Sepal.Width", "Sepal.Length"))
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.