就是这样的:
[attachment=213941,858]
就是这样的:
[attachment=213941,858]
ggplot2能画: http://had.co.nz/ggplot2/geom_area.html
google visualization gallery里也有这个图, 个人觉得这图除了色彩鲜明以外没什么明显的优点, 慎用.
stackoverflow上copy的例子:
<br />
require(ggplot2)<br />
set.seed(3)<br />
df = data.frame(<br />
VisitWeek = rep(as.Date(seq(Sys.time(),<br />
length.out = 5, by = "1 day")), 3),<br />
ThingAge = rep(1:3, each = 5),<br />
MyMetric = sample(100, 15))</p>
<p>ggplot(df, aes(x = VisitWeek, y = MyMetric)) +<br />
geom_area(aes(fill = factor(ThingAge)))<br />
</p>
[attachment=213953,861]
百分比的堆积呢?可以直接做吗?
还是需要再转一下数据?