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

Description Usage Arguments Value See Also Examples

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 May 16, 2019, 4:16 p.m.