I would like to remove the colored area under a density curve, and I think areaStyle is the appropriate argument for that (not sure though, I started to use this package today). However, changing opacity from 0 to 1 doesn't seem to have an effect on the plot:
library(echarts4r)
df <- data.frame(
x = 1:100,
y = rnorm(100, 20, 12)
)
df %>%
e_charts() %>%
e_density(y, areaStyle = list(opacity = 1))
# Different opacity but same result
df %>%
e_charts() %>%
e_density(y, areaStyle = list(opacity = 0))
Is there a reason for that? Am I missing something?
echarts4r 0.3.2
I would like to remove the colored area under a density curve, and I think
areaStyleis the appropriate argument for that (not sure though, I started to use this package today). However, changingopacityfrom 0 to 1 doesn't seem to have an effect on the plot:Is there a reason for that? Am I missing something?
echarts4r 0.3.2