I am running this renderPlotly code in R shiny but for some reason the geom_point is working with the tooltips but not the geom_line:
output$Bulk_Weight_Plot <- renderPlotly({
p <- ggplot(truck_chart_df(), aes(x = Forecast_Date, y = Bulk_Weight)) +
geom_line() +
geom_point() +
xlab("Forecast Date") +
ylab("Bulk Weight") +
scale_color_ptol("cyl") +
theme_minimal() +
scale_y_continuous(labels = comma)
p <- ggplotly(p)
p
})
This is what it looks like in the app
Below is a snippet of the example data
Any advice or ideas would be much appreciated!