LoginSignup
1
1

More than 5 years have passed since last update.

ggplot2でパネルの周りに枠をつける(box)

Posted at

boxをつける方法

fill=NAがないと、プロットが白い長方形で覆われてしまいます。

R
g <- g + theme(panel.border = element_rect(fill = NA, size=1))

boxでなく、単に横軸と縦軸をつける方法

R
theme(panel.border = element_blank(), axis.line = element_line())

参考

1
1
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
1
1