Skip to content

Instantly share code, notes, and snippets.

@hujuu
Last active October 17, 2018 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hujuu/c751d8506065350f9c316c43cf151fa2 to your computer and use it in GitHub Desktop.
Save hujuu/c751d8506065350f9c316c43cf151fa2 to your computer and use it in GitHub Desktop.
R と R Studioのインストール ref: https://qiita.com/hujuu/items/ddd66ae8e6f3f989f2c0
x <- 1:10
y <- 1:10 # plot(x 軸のデータ, y 軸のデータ, オプション)
plot(x, y) # 範囲は自動で決まる(xlim=c(1,10)を指定した場合と同じ)
plot(x, y, xlim=c(10,1)) # x 軸の正の向きを左向きにすることも出来る
2 ^ 5
a <- 100
b <- 2
a * b
list <- c(2,4,6,8,10)
list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment