textogram: Make an ascii histogram in the console.

View source: R/NCmisc.R

textogramR Documentation

Make an ascii histogram in the console.

Description

Uses a call to base::hist(...) and uses the densities to make a a text histogram in the console Particularly useful when working in the terminal without graphics.

Usage

textogram(X, range = NA, ...)

Arguments

X

numeric vector of data

range

optional sub-range of X to test; c(low,high)

...

additional arguments passed to base::hist()

Value

outputs an ascii histogram to the console

Author(s)

Nicholas Cooper njcooper@gmx.co.uk

Examples

textogram(runif(100000))
textogram(rnorm(10000),range=c(-3,3))

NCmisc documentation built on Oct. 17, 2022, 5:09 p.m.