powered by
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
units_options(parse = FALSE) # otherwise we break on the funny symbol! u = set_units(rnorm(100), degree_C) hist(u)
Run the code above in your browser using DataLab