删除R中周期图中的轴缩放比例

问题描述 投票:0回答:1

我使用spec.pgram绘制周期图,但我不想使用对数Y刻度。如何删除?[“

r
1个回答
0
投票

如果我正确理解了您的问题,则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

spec plots

© www.soinside.com 2019 - 2024. All rights reserved.