-
Notifications
You must be signed in to change notification settings - Fork 635
Closed
Description
See the following example.
When you add dynamicTicks = TRUE The date is not converted properly on the x-axis.
library("reshape2")
library("ggplot2")
library("plotly")
test_data <-
data.frame(
var0 = 100 + c(0, cumsum(runif(49, -20, 20))),
var1 = 150 + c(0, cumsum(runif(49, -10, 10))),
date = seq(as.Date("2002-01-01"), by="1 month", length.out=100)
)
test_data_long <- melt(test_data, id="date") # convert to long format
ggplot(data=test_data_long,
aes(x=date, y=value, colour=variable)) +
geom_line()
ggplotly(dynamicTicks = TRUE)
Metadata
Metadata
Assignees
Labels
No labels