LoginSignup
3
5

More than 5 years have passed since last update.

ggplot2でプロットのマージンを変える

Last updated at Posted at 2014-10-17

概要

plot.marginで指定するのですが、上下左右の4つの値が必要となります。
公式のマニュアルだと、legend.marginの例しか出てないので勘違いしていました。

g + theme(plot.margin= unit(c(1, 1, -1, 1), "lines"))

参考

3
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
5