小编Die*_*rto的帖子

为什么我必须在闪亮的 ggplot 中使用 aes_string() ?

我\xc2\xb4m 新使用shiny 和I\xc2\xb4m 尝试制作ggplot。根据我所读到的内容,我必须使用aes_string代替aes(),但我仍在试图找出原因。

\n

我的代码:

\n
output$scatterplot <- renderPlot({\n    ggplot(data = movies, aes_string(x = input$x, y = input$y,\n                                     color = input$z)) +\n      geom_point(alpha = input$alpha)\n  })\n
Run Code Online (Sandbox Code Playgroud)\n

r ggplot2 shiny shiny-reactivity

1
推荐指数
1
解决办法
1015
查看次数

标签 统计

ggplot2 ×1

r ×1

shiny ×1

shiny-reactivity ×1