0
1

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 5 years have passed since last update.

R > グラフ > plot() > 複数のデータセットを載せる

Last updated at Posted at 2016-09-23
動作環境
RStudio 0.99.903 on Windows 7 pro
R version 3.3.1

R機能マップ
http://qiita.com/7of9/items/0f911bcb95d3a8bbd703

plot()において複数のデータセットを載せられないかと思った。

参考 http://stackoverflow.com/questions/2564258/plot-two-graphs-in-same-plot-in-r
参考 http://www.harding.edu/fmccown/r/

> tx<-c(1,2,3)
> ty1<-c(8,6,5)
> ty2<-c(4,3,2)
> ty3<-c(1,2,3)
> plot(tx,ty1,type="b",ylim=c(0,10))
> lines(tx,ty2,type="b",col="red")
> lines(tx,ty3,type="b",col="blue")

qiita.png

これで重森三玲ができそうだ。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?