i'm creating a dashboard using the shiny package. One of the plots, which is supposed to show the date on hover is not doing so, instead, its displaying a decimal value for the date. Date is saved in the as.Date() function, in the 'date' variable :
custData$date <- as.Date(custData$date, "%m/%d/%Y") Server.R code for displaying the plot:
output$sidePlot2 <- renderPlotly({print(ggplotly(custData %>% group_by(date) %>% summarise(revenue = sum(lineTotal)) %>% ggplot(aes(x = date, y = revenue)) + geom_line() + geom_smooth(method = 'auto', se = FALSE) + labs(x = 'Date', y = 'Revenue (£)', title = 'Overall Revenue Trend by Date') ) ) } ) 
ggplot2withdevtools::install_github("tidyverse/ggplot2"). I recently came across a similar issue and resolved it by upgrading from2.2.1(the CRAN version) to2.2.1.9000