hist.units: histogram for unit objects

Description Usage Arguments Examples

View source: R/plot.R

Description

histogram for unit objects

Usage

1
2
## S3 method for class 'units'
hist(x, xlab = NULL, main = paste("Histogram of", xname), ...)

Arguments

x

object of class units, for which we want to plot the histogram

xlab

character; x axis label

main

character; title of histogram

...

parameters passed on to hist.default

Examples

1
2
3
units_options(parse = FALSE) # otherwise we break on the funny symbol!
u = set_units(rnorm(100), degree_C)
hist(u)

Example output

udunits system database from /usr/share/xml/udunits

units documentation built on Feb. 5, 2022, 1:09 a.m.