spark.matrix: Spark lines for rows of a matrix.

Description Usage Arguments Value See Also Examples

View source: R/matrices.R

Description

Spark lines for rows of a matrix.

Usage

1
2
3
## S3 method for class 'matrix'
spark(data, width = c("data", "auto", "screen"),
  common_scale = TRUE, ...)

Arguments

data

The matrix to plot.

width

The width (number of characters) of the output. ‘data’ means that it will match the length of the data. ‘screen’ means that it will be scaled to match the width of the screen. ‘auto’ means ‘data’ if the length of the data is not longer than the screen width, and ‘screen’ otherwise.

common_scale

Whether to plot all rows on a common scale. If FALSE, then all rows will have their own scales.

...

Passed to spark.default. E.g. it can be used to mark the minimum and/or maximum values.

Value

Character scalar containing the spark line.

See Also

Other spark: spark.default, spark

Examples

1
2
3
spark(volcano)

spark(t(EuStockMarkets), width="auto", common_scale = FALSE)

gaborcsardi/spark documentation built on July 26, 2017, 10:09 a.m.