knitr::opts_chunk$set(echo = TRUE)
Assets for the echarts4r package; contains high-resolution images for the the echarts4r::e_globe
functions as well as icons to use in echarts4r::e_legend
and other echarts4r functions.
echarts4r
is available from CRAN, echarts4r.assets
is available from Github only:
install.packages("echarts4r") # install.packages("devtools") remotes::install_github("JohnCoene/echarts4r.assets")
This is a large package due to the size of the high fidelity textures it contains (currently holding 11.6Mb of assets), it might take a small minute to install. However, this does not mean that it crowds your envrionment, on the contrary it includes but a few functions.
The following assets are available.
echarts4r.assets::ea_bank() data("icons") nrow(icons)
library(echarts4r) library(echarts4r.assets) e_charts() %>% # initialise e_rm_axis("x") %>% # remove axis e_rm_axis("y") %>% e_globe( environment = ea_asset("starfield"), base_texture = ea_asset("world") )
Though the pacakge is designed with echarts4r
in mind, the assets can technically be used for other packages
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.