List class intervals.

intervals.freq(x)

Arguments

x

class graph.freq, histogram or numeric

Value

It show interval classes.

See also

Examples

library(agricolae) # example 1 data(growth) h<-hist(growth$height,plot=FALSE) intervals.freq(h)
#> lower upper #> [1,] 6 7 #> [2,] 7 8 #> [3,] 8 9 #> [4,] 9 10 #> [5,] 10 11 #> [6,] 11 12 #> [7,] 12 13
# example 2 x<-seq(10,40,5) y<-c(2,6,8,7,3,4) intervals.freq(x)
#> lower upper #> [1,] 10 15 #> [2,] 15 20 #> [3,] 20 25 #> [4,] 25 30 #> [5,] 30 35 #> [6,] 35 40
histogram <- graph.freq(x,counts=y)