Learn R Programming

sparkTable (version 1.3.0)

plot-methods: Plot objects of class 'sparkline', 'sparkbar', 'sparkhist' or 'sparkbox'

Description

Function that calls plot-methods for objects of class 'sparkline', 'sparkbar', 'sparkhist' or 'sparkbox'.

Usage

plot(x, y, ...)

Arguments

x
an object of class 'sparkline', 'sparkbox' or 'sparkbar'.
y
not used, only for compatibility.
...
additional parameters passed. Currently possible values:
  • padding: numeric vector of length 4 containing positive values. These are internally rescaled and appropriate margins are added to the resulting plots.

Examples

Run this code
  data(pop)
  x <- pop[pop[,2]=="Insgesamt",3]
  a <- newSparkLine(values=x, pointWidth=8)
  plot(a)

Run the code above in your browser using DataLab