nc_comp: Comparison of methods to calculate the number of classes

Description Usage Arguments Value Methods (by class) See Also

View source: R/nc_comp.R

Description

Compare the methods for calculation of the number of classes from a numerical random variable.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
nc_comp(x, density = FALSE, xlab = NULL, ...)

## Default S3 method:
nc_comp(x, density = FALSE, xlab = NULL, ...)

## S3 method for class 'nc_comp'
print(x, ...)

## S3 method for class 'nc_comp'
ggplot(x, ...)

## S3 method for class 'nc_comp'
summary(x, ...)

Arguments

x

a numerical vector.

density

logical; if TRUE, the histogram graphic is a representation of frequencies, the counts component of the result; if FALSE, probability densities, component density, are plotted (so that the histogram has a total area of one).

xlab

a character string, X axis label. By default it gets from object vector name with deparse(substitute(x)).

Value

A nc_comp object.

Methods (by class)

See Also

hist, geom_histogram, geom_freqpoly.


rodianf/histogramR documentation built on May 14, 2019, 7:33 a.m.