我\xc2\xb4m 新使用shiny 和I\xc2\xb4m 尝试制作ggplot。根据我所读到的内容,我必须使用aes_string代替aes(),但我仍在试图找出原因。
我的代码:
\noutput$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 })\nRun Code Online (Sandbox Code Playgroud)\n