针对你遇到的错误“error in plot.window(...) : 'xlim'值不能是无限的”,以下是一些可能的解决步骤和原因分析: 检查plot.window(...)函数调用中的xlim参数: 当你使用R语言进行绘图时,plot.window函数用于设置绘图窗口的大小和范围。xlim参数用于指定x轴的范围。如果xlim被设置为无限值(如Inf或-Inf),就会导致...
> boxplot(airquality$wind, xlab="Wind", ylab="Speed(mph)") Error in plot.window(xlim = xlim, ylim = ylim, log = log, yaxs = pars$yaxs) : 'ylim'值不能是无限的 In addition: Warning messages: 1: In min(x) : no non-missing arguments to min; returning Inf 2: In max(x) : ...
Error in plot.window(xlim = xlim, ylim = ylim, log = log, yaxs = pars$yaxs) : 'ylim'值不能是无限的 In addition: Warning messages: 1: In min(x) : no non-missing arguments to min; returning Inf 2: In max(x) : no non-missing arguments to max; returning -Inf写回答 关注 1回...
In max(as.numeric(hrLow), as.numeric(hrHigh)) : no non-missing arguments to max; returning -Inf > plot(1,xlim=xlim,ylim=ylim,type="n",axes=F,ylab="",xaxs="i",xlab="Hazard ratio") Error in plot.window(...) : 'xlim'值不能是无限的 > arrows(as.numeric(hrLow),n:1,as.num...
plot(x, y)# Try to draw plot# Error in plot.window(...) : need finite 'xlim' values# In addition: Warning messages:# 1: In min(x) : no non-missing arguments to min; returning Inf# 2: In max(x) : no non-missing arguments to max; returning -Inf ...
Error in plot.window(xlim, ylim, log, ...) : need finite 'ylim' values In addition: Warning messages: 1: In xy.coords(x, NULL, log = log) : NAs introduced by coercion 2: In min(x) : no non-missing arguments to min; returning Inf 3: In max(x) : no non-missing arguments ...
Error in plot.window(…) : need finite ‘ylim’ values As you can see in this example, the vectors entered into the plot() function are “x” and “q” with “x” being a numeric vector and “q” a character Victor. Note the unused numeric vector “y” which is also a numeric ...