我试过这个:
library(shiny)
library(echarts4r)
ui <- fluidPage(
fluidRow(
column(3, echarts4rBoxOutput("box1"))
)
)
server <- function(input, output, session) {
output$box1 <- renderEcharts4rBox({
echarts4rBox(cars, speed, dist, "Cake", type = "bar")
})
}
shinyApp(ui, server)
字符串
但是:
错误:未找到对象“speed”
我正在使用最新版本的echarts4r
,但不工作。
1条答案
按热度按时间oalqel3c1#
通过向
echarts4rBox
函数调用提供字符串x和y列来运行代码:字符串
问题来自于无效的输入传输和转换到内部.build_data2函数。
echarts4rBox
函数被设计为接受x和y输入的字符串或引号,但它不适用于引号。型