0

出于某种原因,我无法在我的 slickR 轮播中呈现 datatable html 表。图表已呈现,但表格为空,请您建议我做错了什么?

library(slickR)
library(svglite)


dt <-
  data.frame(
    val = seq(1, 10),
    ser = seq(1, 10)
  )


svg <-
  list(
    datatable(dt),
    
    xmlSVG(code = {print(
      ggplot(dt, aes(x = val, y = ser)) +
        geom_bar(stat = "identity"))
    }, standalone = TRUE, height = 3)
  )

slickR(svg, width = "100%")
4

0 回答 0