histogram for unit objects
# S3 method for units
hist(x, xlab = NULL, main = paste("Histogram of", xname),
...)
object of class units, for which we want to plot the histogram
character; x axis label
character; title of histogram
parameters passed on to hist.default
# NOT RUN {
units_options(parse = FALSE) # otherwise we break on the funny symbol!
u = rnorm(100) * make_unit("<U+00B0>C")
hist(u)
# }
Run the code above in your browser using DataLab