Skip to content

Instantly share code, notes, and snippets.

View mtaylor-semo's full-sized avatar

Michael S. Taylor mtaylor-semo

  • Southeast Missouri State University
  • Cape Girardeau, Missouri
View GitHub Profile
@mtaylor-semo
mtaylor-semo / gist:cdf10b33dc94a53000f7f78f09910c9f
Created January 19, 2019 13:26 — forked from jrnold/gist:6799152
Create a plot of the normal distribution with an area shaded in. Useful for teaching z-scores and stuff like that.
library("ggplot2")
#' Draw Normal Distribution Density with an area shaded in.
#'
#' @param lb Lower bound of the shaded area. Use \code{-Inf} for a left tail.
#' @param ub Upper bound of the shaded area. Use \code{Inf} for a right tail.
#' @param mean Mean of the normal distribution
#' @param sd Standard deviation of the normal distribution
#' @param limits Lower and upper bounds on the x-axis of the area displayed.
#' @return ggplot object.
t-test Shiny App
Base R code created by Jimmy Wong
Shiny app files created by Jimmy Wong
Cal Poly Statistics Dept Shiny Series
http://statistics.calpoly.edu/shiny