【发布时间】:2022-12-19 02:54:59
【问题描述】:
Hi and thanks for reading me I'm currently working on a globe made with echarts (inside echarts4r) and would like to set a parameter that I saw in their official documentation, which is: "realisticMaterial.metalness", but so far I couldn't get it to work. In the official documentation displays the parameter as follows:
I wanted to adapt the code inside echats4r in the following way:
library(echarts4r.assets)
library(echarts4r)
airports <- read.csv(
paste0("https://raw.githubusercontent.com/plotly/datasets/",
"master/2011_february_us_airport_traffic.csv")
)
airports |>
e_charts(long) |>
e_globe(
viewControl = list(rotateSensitivity = 5),
realisticMaterial = list(metalness = 1),
globeOuterRadius = 100
) |>
e_scatter_3d(lat, cnt, coord_system = "globe", blendMode = 'lighter') |>
e_visual_map(inRange = list(symbolSize = c(1, 10))) |>
e_color(background = "transparent")
But I haven't been able to get it to work, does anyone know what I could be doing wrong?
Thanks for the help
【问题讨论】: