| BDataFrequencyHistograms | R Documentation |
Simple S3 constructor of a data container for distributional data where each distribution is represented as a (absolute) frequency histogram.
BDataFrequencyHistograms(matrixCounts, breaks, basis)
matrixCounts |
a matrix (or some object convertible to one with 'as.matrix()') containing absolute frequencies, observations by row and histogram bins by column |
breaks |
defining the histogram bins |
basis |
the B-spline basis to be used |
An object of class 'c("BDataFrequencyHistograms","BDataHistograms","BData")', with the matrix counts as main value and 'breaks' and 'basis' as attributres.
Other BDataHistograms:
as.BDataDensityHistograms(),
as.BDataDensityHistograms.list(),
as.BDataFrequencyHistograms.list(),
getBreaks(),
plot.BDataHistograms()
set.seed(47)
breaks = seq(-3,3,by=1)
inRange = function(x) -3<x & x<3
X = t(replicate(10,hist(Filter(inRange,rnorm(1000)),breaks=breaks)$counts))
hists = BDataFrequencyHistograms(X,breaks=breaks,basis=B2N01Basis5)
plot(hists)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.