output$plot3 <- renderChart2({
dat <- candyData[candyData$candyChoice %in% input$candyChoice, ]
if(!is.na(dat)){
n <- nPlot(freq ~ purchase_month, group = 'candy choice', data=dat, type = "lineChart")
}
})
我的日期,在我的控制檯打印時,顯示是這樣的:NPLOT日期顯示爲一個計算整數
"2014-04-01" "2014-05-01" "2014-06-01" "2014-07-01" "2014-08-01" "2014-09-01" "2014-10-01"
"2014-11-01" "2014-12-01" "2015-01-01" "2015-02-01" "2015-03-01" "2015-04-01" "2015-05-01"
"2015-06-01" "2015-07-01" "2015-08-01"
有關如何解決此問題的任何建議將受到熱烈歡迎!
更新2 圖線與nPlot交互式工具提示不匹配。你知道如何解決這個問題嗎?
【如何使一個偉大的[R重複的例子?(http://stackoverflow.com/questions/5963269) – zx8754