P粉7864325792023-09-04 14:21:52
我猜有多種方法可以做到這一點。一種選擇是使用在crosstalk
套件中實現的Bootstrap Columns:
library(r2d3) library(crosstalk) crosstalk::bscols( widths = c(6, 6), r2d3(data=c(0.3, 0.6, 0.8, 0.95, 0.40, 0.20), script = "barchart.js", width = 300, height = 200), r2d3(data=c(0.3, 0.6, 0.8, 0.95, 0.40, 0.20), script = "barchart.js", width = 300, height = 200) )
順便說一句 - bscols對於安排任何互動的html小部件也非常有用,並且可以解決大多數情況下無法輕鬆安排「正常」Rmd輸出的問題。