![](/img/trans.png)
[英]How can I update the x,y and r value in d3.js using a range slider/scroll through arrays? (d3.js)
[英]How can I achieve the R kernel density estimate plot using 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))
我正在嘗試使用D3.js或任何其他等效的JavaScript庫來實現相同的結果。
有人可以幫忙嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.