> B<-subset(olympic,sport=="basketball")
> BM<-subset(B,sex=="M"
+)
> boxplot(BM$height)
誤差(XLIM = XLIM,ylim = ylim,登錄=日誌,yaxs =收杆$ yaxs):
需要有限' ylim'值
另外:警告消息:
1:在min(x)中:沒有非缺少參數min;返回Inf
2:在max(x)中:沒有非缺失參數爲max;返回-InfR韌體,使得箱線圖,需要有限 'ylim' 值在plot.window
這就是我試圖繪製圖表時發生的情況。我是R
的新手。
你做了哪些努力,調查的問題?如果我搜索錯誤的第二行,我得到[this](http://stackoverflow.com/questions/21349368/error-in-plot-window-need-finite-xlim-values),[this]( http://stackoverflow.com/questions/19836635/need-finite-ylim-values-error),[this](http://stackoverflow.com/questions/25871292/r-need-finite-ylim-values-in功能)和[this](https://stat.ethz.ch/pipermail/r-help/2012-January/299789.html)。 –
@XiaohuiZhu如果您發佈了一個工作示例(即引發錯誤的數據集),我們可以更好地爲您提供幫助。事實上,我們猜測。 –
「BM $ height」的輸出是什麼? –