1
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 > データ操作 > データ作成 > Spline Editorからスプライン補間されたデータ作成

Last updated at Posted at 2016-09-23
動作環境
Spline Editor http://mbostock.github.io/protovis/ex/splines.html
RStudio 0.99.903 on Windows 7 pro
R version 3.3.1
ペイント v6.1

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

Rで扱うデータをSpline Editorを使って作ってみる。

Spline Editorで作図

qiita.png

ペイントで座標情報を得る

qiita.png

Rで作図

座標は上下逆なので-yとした。

> x<-c(197,370,486,542,795)
> y<-c(524,355,558,355,550)
> z<-spline(x,-y,n=100)
> plot(z)

qiita.png

元の図と異なる図になってしまう。
スプライン補間の種類が違う可能性がある。

微調整すれば自分が欲しいデータを作れる感じではある。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?