histogram: Nicely Formatted Histogram

Description Usage Arguments Examples

View source: R/utility_functions.R

Description

An extension of the hist function that generates a nicely formatted figure with additional details on common summary statistics (mean, median, quartiles, and 2.5

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
histogram(
  x,
  col = "grey",
  border = "white",
  main = "",
  xlab = "Values",
  breaks = "FD",
  tck = 0,
  ...
)

Arguments

x

A vector of values.

col

The color used to fill the bars.

border

The color of the border of the bars.

main

The title of the figure.

xlab

The x-axis label.

breaks

See hist.

tck

The size of the axis ticks.

...

Additional parameters for the hist function.

Examples

1
histogram( rnorm( 100 ) )

rettopnivek/utilityf documentation built on March 1, 2021, 7:05 p.m.