Description
Wrapper for 'Visa Chart Components'.
Description
Provides a set of wrapper functions for 'Visa Chart Components'. 'Visa Chart Components' <https://github.com/visa/visa-chart-components> is an accessibility focused, framework agnostic set of data experience design systems components for the web.
README.md
visachartR
This package wraps @visa/charts web components for use in R, leveraging the htmlwidgets R package. You can find visachartR on CRAN, installation steps provided below.
Installation Steps
- CRAN Version
$ install.packages("visachartR")
- Development version:
$ remotes::install_github("visa/visa-chart-components/packages/charts-R")
Components with Ready
status in this bundle
- @visa/bar-chart
- @visa/clustered-bar-chart
- @visa/stacked-bar-chart
- @visa/line-chart
- @visa/pie-chart
- @visa/scatter-plot
- @visa/heat-map
- @visa/circle-packing
- @visa/parallel-plot
- @visa/dumbbell-plot
- @visa/world-map
- @visa/alluvial-diagram
# Use VCC as R functions
Step 1: Install install.packages("visachartR")
Step 2: Use component as any other R function
library(visachartR)
bar_chart(BOD, ordinalAccessor="Time", valueAccessor="demand")
scatter_plot(mtcars[order(mtcars$cyl),], "wt", "mpg", "cyl")