iscamaddnorm: Overlay a Normal Density Function on Histogram

View source: R/overlayDensities.R

iscamaddnormR Documentation

Overlay a Normal Density Function on Histogram

Description

addnorm creates a histogram of x and overlays a normal density function.

Usage

iscamaddnorm(
  x,
  main = "Histogram with normal curve",
  xlab = deparse(substitute(x)),
  bins = NULL
)

Arguments

x

A numeric vector representing the data to be plotted.

main

(optional) title for the plot.

xlab

(optional) x-axis label for the plot.

bins

(optional) number of bins for the histogram.

Value

A histogram of x overlayed with an normal density function.

Examples

set.seed(0)
x <- rnorm(100)
iscamaddnorm(x)
iscamaddnorm(x, main = "Your Active Title", xlab = "Normal Data", bins = 20)

ISCAM documentation built on Feb. 12, 2026, 5:07 p.m.