forestplot()的plot()和dev.off()错误消息

forestplot()的plot()和dev.off()错误消息,r,R,我使用forestplot()制作了一个图形,并尝试将其输出为高分辨率图形,但它不起作用。该图在R studio plots窗口中绘制得很好,但当我尝试使用plot()和dev.off()时,会收到一条错误消息 不知道为什么 谢谢你的帮助 setwd("C:/Users/User/Desktop") ppi <- 300 png("plotfp.png", width=9*ppi, height=9*ppi, res=ppi) plot(plotfp) Error in xy.coords

我使用forestplot()制作了一个图形,并尝试将其输出为高分辨率图形,但它不起作用。该图在R studio plots窗口中绘制得很好,但当我尝试使用plot()和dev.off()时,会收到一条错误消息

不知道为什么

谢谢你的帮助

setwd("C:/Users/User/Desktop")
ppi <- 300
png("plotfp.png", width=9*ppi, height=9*ppi, res=ppi)
plot(plotfp)
Error in xy.coords(x, y, xlabel, ylabel, log) : 
  'x' is a list, but does not have components 'x' and 'y'
> dev.off() 
setwd(“C:/Users/User/Desktop”)
ppi开发关闭()
您的代码显示了
plot(plotfp)
但您没有向我们显示任何关于
plotpf的内容。这是怎么一回事?至少给我们看看
str(plotpf)
。如果你总是