plot: Plot objects of class 'sparkline', 'sparkbar', 'sparkhist' or...

Description Usage Arguments Author(s) Examples

Description

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

Usage

1
  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.

Author(s)

Bernhard Meindl, Alexander Kowarik, Statistics Austria

Examples

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

Example output

Loading required package: Cairo
Loading required package: gridExtra
Loading required package: ggplot2
Loading required package: shiny
Loading required package: Rglpk
Loading required package: slam
Using the GLPK callable library version 4.52
package sparkTable (version 1.3.0) has been loaded!

sparkTable documentation built on May 2, 2019, 9:34 a.m.

Related to plot in sparkTable...