我使用R
的{{1}}实现创建了一个时序图,如下所示:
AmCharts
有了这个,我得到了一个很好的时间序列图,但是我想要的是像https://support.sas.com/sassamples/graphgallery/PROC_GPLOT_Graph_Types_Plots_Area.html
这样的堆积面积时间序列图有什么方法可以使用library(rAmCharts)
Dat = structure(list(Date = structure(c(1559759400, 1559845800, 1559932200,
1560018600), class = c("POSIXct", "POSIXt"), tzone = ""), A = c(26813092,
26813092, 26813092, 26813092), B = c(10215783, 10215783, 10215783,
10215783), C = c(2e+07, 2e+07, 2e+07, 2e+07), D = c(13065815,
13065815, 13065815, 13065815)), row.names = c(NA, -4L), class = "data.frame")
amTimeSeries(Dat, "Date", colnames(Dat)[!colnames(Dat) %in% 'Date'], color = c("red", "blue", "black", "green"), linetype = 0)
来实现?
感谢您的指导。