scale: Scale Histogram Counts

Description Usage Arguments Author(s) See Also Examples

Description

Scales the counts of the provided histograms by the provided factor and returns a new histogram.

Usage

1

Arguments

x

A "histogram" object (created by hist) representing a dataset summarized by binning.

factor

A number value to scale the bucket counts by. Defaults to 1/Count(x) to normalize the sum of counts of the histogram to 1.

Author(s)

Murray Stokely mstokely@google.com

See Also

histogramtools-package, hist.

Examples

1
2
3
x <- runif(100)
h <- hist(x, plot=FALSE)
plot(ScaleHistogram(h, 10))

Example output



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