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.
- CRAN Version
$ install.packages("visachartR")
- Development version:
$ remotes::install_github("visa/visa-chart-components/packages/charts-R")
- @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")