'MUI X Charts' for 'shiny' Apps and 'Quarto'

'MUI X Charts' React chart components for data visualization for building 'shiny' applications and 'quarto' documents. Bundles the MIT-licensed community edition of the '@mui/x-charts' JavaScript library (the commercial 'Pro' tier is not included).


muiCharts

CRANstatus R-CMD-check LinkedIn

muiCharts gives access to MUI X Charts React chart components for data visualization from R.

Install

install.packages("muiCharts")

You can install the development version of muiCharts like so:

remotes::install_github("lgnbhl/muiCharts")

Read the full documentation with examples here.

Basic example

library(muiCharts)

BarChart(
  dataset = head(starwars_people, 4),
  xAxis = list(
    list(scaleType = "band", dataKey = "name")
  ),
  series = list(
    list(dataKey = "height", label = "Height")
  ),
  height = 300
)
BarChart example

Resources

Acknowledgements

muiCharts is built on top of shiny.react, the R package by Appsilon that makes it possible to use React components in Shiny and Quarto.

Contributing

If you have any issue, question or want to contribute with a pull request, don’t hesitate to write me on https://github.com/lgnbhl/muiCharts

Follow Felix Luginbuhl on LinkedIn for updates.

Trademark notice

“MUI” and “MUI X Charts” are trademarks of MUI Inc. muiCharts is an independent, community-maintained R package and is not affiliated with, sponsored by, or endorsed by MUI Inc. The names are used solely to identify the underlying JavaScript library that this package wraps. See MUI’s legal information for the canonical list of MUI’s published policies.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("muiCharts")

0.1.0 by Felix Luginbuhl, 3 months ago


https://github.com/lgnbhl/muiCharts


Report a bug at https://github.com/lgnbhl/muiCharts/issues


Browse source code at https://github.com/cran/muiCharts


Authors: Felix Luginbuhl [aut, cre, cph] (ORCID: , MUI [cph] (Copyright holder of the bundled '@mui/x-charts' JavaScript library and its '@mui/x-charts-vendor' , '@mui/x-internals' , '@mui/x-internal-gestures' and '@mui/system' (subpath imports) helpers; see LICENSE.note) , Mike Bostock [cph] (Copyright holder of the bundled D3 modules and 'internmap' (ISC license) , vendored via '@mui/x-charts-vendor'; see LICENSE.note) , Meta Platforms , Inc. and affiliates [cph] (Copyright holder of the bundled 'react-is' , 'prop-types' and 'use-sync-external-store' JavaScript libraries; 'react' and 'react-dom' are declared as peer dependencies and provided at runtime by 'shiny.react')


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports muiMaterial, htmltools, shiny.react, utils

Suggests dplyr, tidyr, knitr, rmarkdown, testthat


See at CRAN