asciiPlot {asciichartr} | R Documentation |
ASCII chart of vector. Generate an ascii chart for a series of numbers.
Description
asciiPlot
returns a character string of a chart for given series.
Usage
asciiPlot(series, cfg = list())
Arguments
series |
A numeric vector, missing data values in the series can be specified as a NA. |
cfg |
A named list with some options: |
Value
A character string
Examples
series <- c(1,2,3,4,4,3,2,1)
cat(asciiPlot(series))
series <- c(1,2,3,NA,4,3,NA,1)
cat(asciiPlot(series))
series <- c(1,2,3,4,NA,4,3,2,1)
cat(asciiPlot(series, list('min' = 0)))
## Not run:
cat(asciiPlot(c(NA, NA)))
## End(Not run)
[Package asciichartr version 0.1.0 Index]