is there a direct way to have the plotly plot below, rather than going through the ggplot?
output$plotly1 <- renderPlotly({
g <- ggplot(testdata, aes(fill=Metrics, y=Percent, x=Date)) +
geom_bar(position="stack", stat="identity") +
facet_wrap(~Line, strip.position = "bottom") +
ylab("Metric Percentage (%)")
ggplotly(g)
})
that is, something to start with:
output$plotly1 <- renderPlotly({
plot_ly(****)
})
Thanks.