【发布时间】:2012-05-15 18:26:28
【问题描述】:
我正在尝试为 this 数据中的变量“ipen”与“year”绘制增长样条曲线。我使用的代码是:
grofit <- read.csv('http://dl.dropbox.com/u/1791181/grofit.csv')
# install.packages(c("grofit"), dependencies = TRUE)
require(grofit)
growth = gcFitSpline(grofit$year, grofit$ipen)
plot(growth)
这工作正常,并产生下面的情节。但问题是(a)我无法使用xlab 或ylab 选项更改默认标签,并且(b)我无法使用ylim=c(0,100) 将x 轴的比例更改为(0,100)在plot() 声明中。我在grofit()documentation 中找不到任何指针。 .
【问题讨论】:
-
我会采用
plot.gcFitSpline()函数并对其进行自定义。