gio*_*oca 5 javascript r kernel-density d3.js
这是我的R代码:
x <- c(5.89,6.81,6.69,7.61,5.44,6.17)
y <- c(1,0.09392423,0.07090779,0.0687634,0.06819157,0.06261615)
plot(density(x, bw=0.050, adjust=1, kernel="gaussian",weights=(y),n=1000))
Run Code Online (Sandbox Code Playgroud)
我正在尝试使用D3.js或任何其他等效的JavaScript库来实现相同的结果.
有人可以帮忙吗?
| 归档时间: |
|
| 查看次数: |
1871 次 |
| 最近记录: |