0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ggplotで枠線あり目盛り線なしのグラフ作る

Last updated at Posted at 2020-05-25

この記事ではR version 3.6.1、tidyverseパッケージを使っています。

コード

library(tidyverse) #パッケージの読み込み
head(iris) #データの確認

iris %>% 
  ggplot(aes(x = Sepal.Length, y = Sepal.Width))+ #軸に用いる値の指定
  geom_point()+ #散布図作成
  theme_bw()+ #枠線と目盛り線のあるテーマを設定
  theme(panel.grid = element_blank()) #目盛り線を消去

完成品

image.png

0
3
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
0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?