merge: Aggregate histograms that have identical breaks.

Description Usage Arguments Details Author(s) See Also Examples

Description

Aggregate histogram objects that have identical breaks.

Usage

1
2

Arguments

...

Histogram objects (created by hist).

x

A list of histogram objects. If x is supplied then the ... are ignored.

main

A title to add to the aggregated/merged histogram. By default, if two histograms are provided a title will be created that includes the names of the original histograms. If more histograms are provided the title will simply include the number of aggregated histograms.

Details

This function adds the buckets of the provided histograms to return a single aggregated histogram.

.NewHistogramName is a utility that takes the list of histogram objects to be aggregated and returns a name for the new merged histogram. It is normally hidden, but can be viewed using HistogramTools:::.NewHistogramName.

Author(s)

Murray Stokely mstokely@google.com

See Also

histogramtools-package and hist.

Examples

1
2
3
4
5
hist.1 <- hist(c(1,2,3,4), plot=FALSE)
hist.2 <- hist(c(1,2,2,4), plot=FALSE)
hist.sum <- AddHistograms(hist.1, hist.2)
hist.3 <- hist(c(1,2,2,4), plot=FALSE)
hist.sum <- AddHistograms(hist.1, hist.2, hist.3)

Example output



HistogramTools documentation built on May 2, 2019, 1:08 p.m.