date format in tooltip of ggplotly
I am using ggplotly to show an interactive time-series plot. The x axis is in date format, yet the hover tool tip in plotly is converting the date format to a numeric (screenshot attached). Any ideas on how to get the date to show as a proper date in the tooltip? Below is a short piece of the code: output$ggplot <- renderPlotly({ plotbycity<-df_postgres %>% group_by(city, date, bedroooms) %>% filter(city %in% input$checkGroup & bedroooms==input$radio) %>% summarise(count=n(),rent=median(rent)) %>% ungroup() plotbycity$date<-as.Date(plotbycity$date) # Error handling plotbycity<-plotbycity[!is