Description Usage Arguments Details Author(s) See Also Examples
SubsetHistogram creates a histogram by zooming in on a portion of a larger histogram and discarding tail buckets.
1 | SubsetHistogram(x, minbreak=NULL, maxbreak=NULL)
|
x |
A histogram object (created by |
minbreak |
If non- |
maxbreak |
If non- |
This function provides a way to "zoom-in" on a histogram by setting new
minimum and maximum breakpoints and returning a histogram of only the
interior part of the distribution. At least one of minbreak
or
maxbreak
should be set, otherwise the original histogram is
returned unmodified.
Murray Stokely mstokely@google.com
histogramtools-package
and
hist
.
1 2 3 4 5 |
$breaks
[1] 0 1 2 3 4 5 6 7 8 9
$counts
[1] 1 1 1 0 0 0 0 0 0
$density
[1] 0.3333333 0.3333333 0.3333333 0.0000000 0.0000000 0.0000000 0.0000000
[8] 0.0000000 0.0000000
$mids
[1] 0.5 1.5 2.5 3.5 4.5 5.5 6.5 7.5 8.5
$xname
[1] "c(1, 2, 3)"
$equidist
[1] TRUE
attr(,"class")
[1] "histogram"
$breaks
[1] 0 1 2 3 4 5 6
$counts
[1] 1 1 1 0 0 0
$density
[1] 0.3333333 0.3333333 0.3333333 0.0000000 0.0000000 0.0000000
$mids
[1] 0.5 1.5 2.5 3.5 4.5 5.5
$xname
[1] "c(1, 2, 3)"
$equidist
[1] TRUE
attr(,"class")
[1] "histogram"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.