R語言
grid.move.to
位於 grid
包(package)。 說明
網格具有當前位置的概念。這些函數設置該位置。
用法
grid.move.to(x = 0, y = 0, default.units = "npc", name = NULL,
draw = TRUE, vp = NULL)
moveToGrob(x = 0, y = 0, default.units = "npc", name = NULL,
vp = NULL)
grid.line.to(x = 1, y = 1, default.units = "npc",
arrow = NULL, name = NULL,
gp = gpar(), draw = TRUE, vp = NULL)
lineToGrob(x = 1, y = 1, default.units = "npc", arrow = NULL,
name = NULL, gp = gpar(), vp = NULL)
參數
x |
指定 x-value 的數值或單位對象。 |
y |
指定 y-value 的數值或單位對象。 |
default.units |
指示 |
arrow |
說明要放置在行兩端的箭頭的列表,由 |
name |
字符標識符。 |
draw |
指示是否應生成圖形輸出的邏輯值。 |
gp |
類 |
vp |
網格視口對象(或 NULL)。 |
細節
這兩個函數都會創建 move.to/line.to grob(說明 move-to/line-to 的圖形對象),但隻有 grid.move.to/line.to()
繪製 move.to/line.to(並且僅當 draw
為TRUE
)。
值
move.to/line.to grob。 grid.move.to/line.to()
以不可見方式返回值。
例子
grid.newpage()
grid.move.to(0.5, 0.5)
grid.line.to(1, 1)
grid.line.to(0.5, 0)
pushViewport(viewport(x=0, y=0, width=0.25, height=0.25, just=c("left", "bottom")))
grid.rect()
grid.grill()
grid.line.to(0.5, 0.5)
popViewport()
作者
Paul Murrell
也可以看看
相關用法
- R grid.curve 在位置之間繪製曲線
- R grid.draw 畫一個網格
- R grid.stroke 描邊或填充路徑
- R grid.raster 渲染光柵對象
- R grid.points 繪製數據符號
- R grid.force 強製將一個對象放入其組件中
- R grid.display.list 控製網格顯示列表
- R grid.show.viewport 繪製網格視口圖
- R grid.segments 繪製線段
- R grid.frame 創建用於包裝對象的框架
- R grid.group 畫一個組
- R grid.pack 將對象打包在框架內
- R grid.text 繪製文字
- R grid.xspline 繪製 X 樣條線
- R grid.copy 製作網格圖形對象的副本
- R grid.record 封裝計算和繪圖
- R grid.pretty 生成一組合理(“漂亮”)的斷點
- R grid.grab 抓取當前電網輸出
- R grid.show.layout 繪製網格布局圖
- R grid.convert 不同網格坐標係之間的轉換
- R grid.DLapply 修改網格顯示列表
- R grid.delay 封裝計算並生成grob
- R grid.polygon 繪製多邊形
- R grid.function 繪製代表函數的曲線
- R grid.yaxis 繪製 Y 軸
注:本文由純淨天空篩選整理自R-devel大神的英文原創作品 Move or Draw to a Specified Position。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。