複数のグラフィックス間のすき間の調整

(グラフィックス参考実例集に戻る。Rのグラフィックスパラメータを参照する。)

r-help 記事より(2004.7.31)

# グラフィックス領域と作図領域間に既定のすき間が取られる
par(mfrow = c(2, 2))
plot(1:5)
box(which = "figure") # グラフィックス領域全体に枠をつける
plot(1:5)
box(which = "figure")
plot(1:5)
box(which = "figure")
plot(1:5)
box(which = "figure")
 left


## 4つのグラフィックス間にすき間を全く置かない極端な例
## 当然タイトル、軸ラベルは置けない
par(mfrow = c(2, 2))
par(mar = c(0, 0, 0, 0)) # グラフィックス領域と作図領域間のすき間をゼロにする
plot(1:5)
box(which = "figure")
plot(1:5)
box(which = "figure")
plot(1:5)
box(which = "figure")
plot(1:5)
box(which = "figure")
 left



添付ファイル: fileabc.png 2212件 [詳細] fileabcd.png 2146件 [詳細]

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2023-03-25 (土) 11:19:16