sparkTable: Generating Graphical Tables for Websites and Documents with R

Visual analysis of data is important to understand the main characteristics, main trends and relationships in data sets and it can be used to assess the data quality. Using the R package sparkTable, statistical tables holding quantitative information can be enhanced by including spark-type graphs such as sparklines and sparkbars . These kind of graphics are well-known in literature and are considered as simple, intense and illustrative graphs that are small enough to fit in a single line. Thus, they can easily enrich tables and texts with additional information in a comprehensive visual way. The R package sparkTable uses a clean S4 class design and provides methods to create different types of sparkgraphs that can be used in websites, presentations and documents. We also implemented an easy way for non-experts to create highly complex tables. In this case, graphical parameters can be interactively changed, variables can be sorted, graphs can be added and removed in an interactive manner. Thereby it is possible to produce custom-tailored graphical tables – standard tables that are enriched with graphs – that can be displayed in a browser and exported to various formats.

Alexander Kowarik , Bernhard Meindl , Matthias Templ
2015-05-29

CRAN packages used

sparkTable, knitr, brew, xtable, shiny

CRAN Task Views implied by cited packages

ReproducibleResearch, WebTechnologies

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".

Citation

For attribution, please cite this work as

Kowarik, et al., "sparkTable: Generating Graphical Tables for Websites and Documents with R", The R Journal, 2015

BibTeX citation

@article{RJ-2015-003,
  author = {Kowarik, Alexander and Meindl, Bernhard and Templ, Matthias},
  title = {sparkTable: Generating Graphical Tables for Websites and Documents with R},
  journal = {The R Journal},
  year = {2015},
  note = {https://doi.org/10.32614/RJ-2015-003},
  doi = {10.32614/RJ-2015-003},
  volume = {7},
  issue = {1},
  issn = {2073-4859},
  pages = {24-37}
}