| sturges.freq {agricolae} | R Documentation |
Number classes: k = 1 + 3.33 log10 (N).
sturges.freq(x)
x |
vector |
x |
Numeric |
Felipe de mendiburu
Reza A. Hoshmand. 1988. Statistical Methods for Agricultural Sciences, Timber Press, Incorporated, pag 18-21.
polygon.freq, table.freq, stat.freq,
intervals.freq, graph.freq, join.freq,
ojiva.freq, normal.freq
library(agricolae)
data(natives)
attach(natives)
classes<-sturges.freq(size)
# information of the classes
breaks <- classes$breaks
breaks
#startgraph
# Histogram with the established classes
h<-graph.freq(size,breaks,frequency=1, col="yellow",axes=FALSE,
xlim=c(0,0.12),main="",xlab="",ylab="")
axis(1,breaks,las=2)
axis(2,seq(0,400,50),las=2)
title(main="Histogram of frequency\nSize of the tubercule of the Oca",
xlab="Size of the oca", ylab="Frequency")
#endgraph