Learn R Programming

sjPlot (version 2.0.0)

dist_norm: Plot normal distributions

Description

This function plots a simple normal distribution or a normal distribution with shaded areas that indicate at which value a significant p-level is reached.

Usage

dist_norm(norm = NULL, mean = 0, sd = 1, p = NULL, xmax = NULL,
  geom.colors = NULL, geom.alpha = 0.7)

Arguments

Examples

Run this code
# a simple normal distribution
dist_norm()

# a simple normal distribution with different mean and sd. 
# note that curve looks similar to above plot, but axis range
# has changed.
dist_norm(mean = 2, sd = 4)

# a simple normal distribution
dist_norm(norm = 1)

# a simple normal distribution
dist_norm(p = 0.2)

Run the code above in your browser using DataLab