histNormal: Histogram with normal curve superimposed to help with...

View source: R/histNormal.R

histNormalR Documentation

Histogram with normal curve superimposed to help with “by-eye” assessments of normality of distribution

Description

Histogram with normal curve superimposed to help with “by-eye” assessments of normality of distribution

Usage

histNormal(
  x,
  xlab = deparse(substitute(x)),
  ylab = "Frequency",
  main = deparse(substitute(x)),
  breaks = "Sturges",
  ylim = NULL
)

Arguments

x

A numeric vector

xlab

x-axis label

ylab

y-axis label

main

Plot title

breaks

Passed to hist() function (?hist for details)

ylim

y-axis limits

Examples

# histNormal() with data from a SMART survey in Kabul, Afghanistan
# (dist.ex01)
svy <- dist.ex01
histNormal(svy$muac)
histNormal(svy$haz)
histNormal(svy$waz)
histNormal(svy$whz)


ernestguevarra/nipnTK documentation built on April 13, 2024, 1:48 p.m.