Description Usage Arguments Author(s) See Also Examples
Basic functions to query parameters for objects of class 'sparkline', 'sparkbar', 'sparkbox', 'sparkTable' or 'geoTable'.
1 | getParameter(object, type)
|
object |
objects of class 'sparkline', 'sparkbar', 'sparkbox', 'sparkTable' or 'geoTable' |
type |
one of the following:
|
Bernhard Meindl, Alexander Kowarik, Statistics Austria
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | data(pop)
x <- pop[pop[,2]=="Insgesamt",3]
a <- newSparkLine(values=x, pointWidth=8)
a <- setParameter(a, type='values', value=sample(1:10, 15, replace=TRUE))
getParameter(a, 'values')
a <- setParameter(a, type='allColors',
value=c("darkred", "darkgreen","darkblue", "white", "black", "red"))
getParameter(a, 'allColors')
getParameter(a, 'pointWidth')
a <- setParameter(a, type='pointWidth', value=3)
getParameter(a, 'pointWidth')
a <- setParameter(a, type='lineWidth', value=1)
a <- setParameter(a, type='width', value=6)
a <- setParameter(a, type='height', value=.6)
|
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!
[1] 2 9 6 4 2 10 9 3 10 3 8 9 3 5 1
[1] "darkred" "darkgreen" "darkblue" "white" "black" "red"
[1] 8
[1] 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.