histnormal: Plot a density histogram with a normal distribution...

Description Usage Arguments Value Examples

View source: R/histnormal.r

Description

Plot a density histogram with a normal distribution superimposed

Usage

1
2
3
4
5
6
7
8
9
histnormal(
  x = rnorm(2000),
  mu = NULL,
  sigma = NULL,
  plot.points = FALSE,
  plot.quantile = FALSE,
  plot.curve = FALSE,
  ran.seed = 4
)

Arguments

x

#The data to be plotted

mu

#The assumed true value for the population mean

sigma

#The assumed true value for the population sd

plot.points

#Should heights for select points be plotted?

plot.quantile

#Should a normal quantile plot be included?

plot.curve

#Should normal function be superimposed?

ran.seed

#Seed value to allow replication of specific sample

Value

A data frame consisting of selected quantiles and their heights

Examples

1
2
3
histnormal()
histnormal(sunspots)
histnormal(sunspots,plot.points=TRUE,plot.quantile=TRUE)

CLPS0900/CLPS0900R documentation built on March 16, 2020, 4:55 a.m.