【发布时间】:2016-02-20 07:06:17
【问题描述】:
使用 rrdtool 图时,默认情况下,会从离散样本创建阶梯线,并用垂直线连接,例如。 G。:
使用 R,我会从样本中创建一条平滑的近似曲线,如下所示:
y <- c(the data from the rrd)
x <- 1:length(y)
lo <- loess(y ~ x)
plot(x, y, ylim = c(-10, 10), col="gray")
lines(predict(lo))
rrdtool自己也能生成这样的图吗?
【问题讨论】: