Learn R Programming

agricolae (version 1.1-8)

intervals.freq: Class intervals

Description

List class intervals.

Usage

intervals.freq(x)

Arguments

x
class graph.freq, histogram or numeric

Value

  • classesmatrix numeric

See Also

polygon.freq, table.freq, stat.freq, graph.freq, sturges.freq, join.freq, ojiva.freq, normal.freq

Examples

Run this code
library(agricolae)
# example 1
data(growth)
h<-hist(growth$height,plot=FALSE)
intervals.freq(h)
# example 2
x<-seq(10,40,5)
y<-c(2,6,8,7,3,4)
intervals.freq(x)
histogram <- graph.freq(x,counts=y)

Run the code above in your browser using DataLab