R語言
plot.xy
位於 graphics
包(package)。 說明
這是執行點和線的基本繪製的內部函數。通常,人們應該使用更高級別的函數,並參考它們的幫助頁麵來獲取參數的解釋。
用法
plot.xy(xy, type, pch = par("pch"), lty = par("lty"),
col = par("col"), bg = NA,
cex = 1, lwd = par("lwd"), ...)
參數
xy |
four-element 列表作為 |
type |
1個字符代碼:參見 |
pch |
點類型的字符或整數代碼,請參閱 |
lty |
線類型代碼,請參見 |
col |
|
bg |
開放圖符號 21:25 的背景(填充)顏色:參見 |
cex |
字符擴展。 |
lwd |
|
... |
進一步的graphical parameters例如 |
細節
參數 pch
、 col
、 bg
、 cex
、 lwd
可能是向量並且可能被回收,具體取決於 type
:有關具體信息,請參閱 points
和 lines
。特別注意,lwd
被視為點的向量和線的單個(第一個)值。
cex
是除 par("cex")
之外的一個數字因子,影響由 type
"p"
、 "o"
、 "b"
和 "c"
繪製的符號和字符。
例子
points.default # to see how it calls "plot.xy(xy.coords(x, y), ...)"
也可以看看
相關用法
- R plot.histogram 繪製直方圖
- R plot.raster 繪製光柵圖像
- R plot.factor 繪製因子變量
- R plot.table 表對象的繪圖方法
- R plot.default 默認散點圖函數
- R plot.window 設置圖形窗口的世界坐標
- R plot.design 繪製設計或模型的單變量效應
- R plot.formula 散點圖的公式表示法
- R plot.data.frame DataFrame 的繪圖方法
- R points 向繪圖添加點
- R pairs 散點圖矩陣
- R polygon 多邊形繪製
- R persp 透視圖
- R pie 餅狀圖
- R par 設置或查詢圖形參數
- R polypath 路徑繪製
- R panel.smooth 簡單麵板圖
- R legend 將圖例添加到繪圖中
- R barplot 條形圖
- R stem 莖葉圖
- R mtext 將文本寫入繪圖的邊距
- R arrows 將箭頭添加到繪圖中
- R contour 顯示輪廓
- R stars 星圖(蜘蛛圖/雷達圖)和線段圖
- R box 在地塊周圍畫一個方框
注:本文由純淨天空篩選整理自R-devel大神的英文原創作品 Basic Internal Plot Function。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。