我使用spec.pgram绘制周期图,但我不想使用对数Y刻度。如何删除?[
如果我正确理解了您的问题,则spec.pgram
会产生类spec
的对象,该对象使用plot.spec
方法绘制,在文档中对此进行了如下描述:
绘制光谱密度,绘制类对象的方法“规格”。对于多元时间序列,它绘制了相干性和相位的系列图或成对图交叉谱。
此方法使用参数log
指定y轴是否将使用对数Y刻度。您可以通过将对数刻度设置为“ no”来丢失它。
# code based on the example in the plot.spec documentation
require(graphics)
spectrum(mdeaths, spans = c(3,3))
par(mfrow = c(1,2))
plot(mfdeaths.spc, log = "yes")
plot(mfdeaths.spc, log = "no")
dev.off