normal.freq: Normal curve on the histogram

Description Usage Arguments Value Author(s) See Also Examples

View source: R/normal.freq.R

Description

A normal distribution graph elaborated from the histogram previously constructed. The average and variance are obtained from the data grouped in the histogram.

Usage

1
normal.freq(histogram, frequency=1, ...)

Arguments

histogram

object constructed by the function hist

frequency

1=counts, 2=relative, 3=density

...

Other parameters of the function hist

Value

Histogram

object

frequency

numeric

probability

logic False or True

Author(s)

Felipe de Mendiburu

See Also

polygon.freq, table.freq, stat.freq, intervals.freq, sturges.freq, join.freq, ogive.freq, graph.freq

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(agricolae)
data(growth)
#startgraph
h1<-with(growth,hist(height,col="green",xlim=c(6,14)))
normal.freq(h1,col="blue")
#endgraph
#startgraph
h2<-with(growth,graph.freq(height,col="yellow",xlim=c(6,14),frequency=2))
normal.freq(h2,frequency=2)
#endgraph

agricolae documentation built on May 29, 2017, 11:42 p.m.

Search within the agricolae package
Search all R packages, documentation and source code