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)

Example output

...........................___________________________.......
.........................._____________________________......
......................._________________________________.....
................._...____________________________________....
................____________________==____________________...
..............._______________===========__________________..
...____......________________=============__________________.
.________..________________================_________________.
_______________________=====================_________________
____________________==========***=**=========________________
__________________==========*********=========______________.
________________==========*************========_____________.
_______________========********<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>*****======____________.
______________=====********<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>***=======__________..
______________====****<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>***=======_________..
_____________=====***<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>***=======________..
____________======**<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>***======________..
___________======***<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>***======_______..
__________=======**<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>***=====_______..
________========**<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>***=====________
______=========***<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>***=====_______
____===========***<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>**=====______.
____==========***<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>**=====____..
___===========***<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>*****<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>**=====____..
___===========***<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>********<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>*=====______
___===========***<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>***********<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>**====______
____==========***<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>****===****<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>**====______
____==========****<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>****======***<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>*====______
_____==========***<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>***=======***<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>*====______
______==========***<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>***=======**<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>*====______
_______==========***<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>***=======**<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>**====______
________==========***<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>***=====***<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>**=====______
_________==========**<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>*****=****<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>***=====______
__________=========***<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>*********<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>****=====_______
___________=========**<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>*****<U+2588>***********=====________
____________========**<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>************=====_________
____________========**<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>*****===**======__________
_____________=======***<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>*****============__________
_____________=======***<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>******===========___________
_____________=======***<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>******============___________
_____________========***<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>*****===========_____________
_____________========*****<U+2588><U+2588>********===========______________
_____________========**************==========________________
_____________========***********============_________________
_____________========***********==========__________________.
_____________========***********==========_________________..
____________=========***<U+2588><U+2588><U+2588>*****==========________________...
____________========***<U+2588><U+2588><U+2588><U+2588><U+2588>*****=========_______________....
____________========**<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>*****==========______________....
____________========***<U+2588><U+2588><U+2588><U+2588>******==========______________....
____________========************===========______________....
____________========**********============_______________....
___________===========******===============_____________.....
___________================================_____________.....
___________================================____________......
___________================================__________._......
___________=================================________.._......
__________==================================_______..........
__________==================================_______..........
__________==================================______...........
__________==================================______...........
__________==================================______...........
__________================================________...........
__________=======================________________............
___________=====================_________________............
___________====================_________________.............
___________==================__________________..............
____________================_________________................
____________===============__________________................
_____________=============_________________..................
_____________============__________________..................
__________________=====__________________....................
_________________________________________....................
._______________________________________.....................
.....__________________________________......................
........_______________________________......................
........._____......_________________........................
..........._..........______________.........................
........................___________..........................
........................_________............................
.........................________............................
........................._______.............................
........................._______.............................
..........................______.............................
...........................____..............................
.............................................................
.............................................................
..........................________________.____________________=====*====**<U+2588><U+2588><U+2588><U+2588><U+2588>
........................._____________________________________=====**=*=**<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>
........._.............__________._..................____.________========*<U+2588><U+2588><U+2588><U+2588><U+2588>
.................._________________________________=====_=========****<U+2588>*<U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588><U+2588>

spark documentation built on July 21, 2017, 1:02 a.m.