hist.units: histogram for unit objects

View source: R/plot.R

hist.unitsR Documentation

histogram for unit objects

Description

histogram for unit objects

Usage

## 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

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

r-quantities/units documentation built on April 1, 2024, 4:06 a.m.