assets.Rmd
All assets currently available.
library(echarts4r)
#> Welcome to echarts4r
#>
#> Docs: echarts4r.john-coene.com
library(echarts4r.assets)
For demonstration purposes let’s create a basic, non working plot to which we’ll add assets.
These are not all the textures included
base %>%
e_globe(
environment = ea_asset("starfield"),
base_texture = ea_asset("world topo"),
height.texture = ea_asset("elevation 4k")
)
base %>%
e_globe(
environment = ea_asset("starfield"),
base_texture = ea_asset("world topo"),
height.texture = ea_asset("elevation 4k"),
displacementScale = 0.1
)
base %>%
e_globe(
environment = ea_asset("starfield"),
base_texture = ea_asset("world"),
layers = list(
list(
type = "overlay",
shading = "lambert",
texture = ea_asset("clouds trans"),
distance = 5
)
)
)
base %>%
e_globe(
displacementScale = 0.1,
baseColor = "#000",
shading = "hatching",
height.texture = ea_asset("elevation 4k"),
hatchingMaterial = list(
hatchingTextures = list(
ea_asset("hatch0"),
ea_asset("hatch1"),
ea_asset("hatch2"),
ea_asset("hatch3"),
ea_asset("hatch4"),
ea_asset("hatch5")
),
textureTiling = list(10, 10)
),
postEffect = list(
enable = TRUE,
edge = list(
enable = TRUE
)
)
)
#> `base_texture` is `NULL`, see echarts4r-assets.john-coene.com