Robin,
In Shiny, you could use ggplot to make your plot, but inside of renderPlotly (and the corresponding plotlyOutput) to make thing interactive.
The built-in dataset mtcars has several columns, but we can interactively just plot two of them:
library(shiny)
library(ggplot)
mycars <- mtcars
ui <- fluidPage(
fluidRow(
plotlyOutput("myplot")
))
server = function(input, output){
output$myplot <- renderPlotly({
ggplot(mtcars,aes(x=cyl, y=mpg))+ geom_point()
})
}
#Run the app
shinyApp(ui, server)
Hope this helps