Format numbers on axes and tooltips in ggplotly
问题 I have used sprintf and formatC to take a double value and round it to two decimal places. However, when I go to use it in ggplot and ggplotly, it makes my visuals act out. Dput: structure(list(Date = structure(c(18328, 18329, 18330, 18331, 18332, 18333), class = "Date"), State = c("Louisiana", "Louisiana", "Louisiana", "Louisiana", "Louisiana", "Louisiana"), variablename1 = c(0, 0, 1, 1, 6, 14), variablename2 = c(5, 5, 5, 11, 37, 37), death = c(0, 0, 0, 0, 0, 0), variablename3 = c(5, 5, 6,