Last chance! 50% off unlimited learning
Sale ends in
hist
method for class "im"
.## S3 method for class 'im':
hist(x, \dots, probability=FALSE)
"im"
).hist.default
or barplot
.TRUE
, the histogram will be
normalised to give probabilities or probability densities.x
. An object of class "im"
describes a pixel image. See im.object
)
for details of this class.
The function hist.im
is a method for the generic
function hist
for the class "im"
.
Any arguments in ...
are passed to hist.default
(for numeric valued images) or barplot
(for factor or
logical images).
For example, such arguments control the axes, and may be used to
suppress the plotting.
hist
,
hist.default
,
barplot
,
im.object
,
summary.im
.X <- as.im(function(x,y) {x^2}, unit.square())
hist(X)
hist(cut(X,3))
Run the code above in your browser using DataLab