-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.Rmd
54 lines (35 loc) · 1.5 KB
/
index.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[![Travis build status](https://travis-ci.org/JohnCoene/echarts4r.assets.svg?branch=master)](https://travis-ci.org/JohnCoene/echarts4r.assets)
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
# echarts4r.assets
Assets for the [echarts4r](https://echarts4r.john-coene.com) 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](https://echarts4r.john-coene.com) functions.
## Install
`echarts4r` is available from CRAN, `echarts4r.assets` is available from [Github](https://github.com/JohnCoene/echarts4r) only:
```r
install.packages("echarts4r")
# install.packages("devtools")
remotes::install_github("JohnCoene/echarts4r.assets")
```
## Note
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.
## Assets
The following assets are available.
```{r, warning=FALSE}
echarts4r.assets::ea_bank()
data("icons")
nrow(icons)
```
## Example
```{r}
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*