How to display scatter plot with R Packages:svgPanZoom?
问题 I draw a picture using ggplot2 and want to display it in shinyApp with svgPanZoom packages. But the sactters is disappear. Anybody know why? You can run the following code for detail: library(shiny) library(svglite) library(svgPanZoom) library(ggplot2) data<-data.frame(x=1:10,y=1:10) ui <- shinyUI(bootstrapPage( svgPanZoomOutput(outputId = "main_plot") )) server = shinyServer(function(input, output) { output$main_plot <- renderSvgPanZoom({ p <- ggplot(data, aes(x = x, y = y)) + geom_point()