#author("2019-02-26T06:40:50+00:00","","")
#author("2019-02-26T06:43:59+00:00","","")
[[R言語入門]] >
* R言語でグラフ描画 [#t7fcddf2]
#setlinebreak(on);

#contents
-- 関連
--- [[R言語入門]]

#TODO

** png画像として出力する [#kf3e78dc]
#html(<div style="padding-left: 10px;">)
#myterm2(){{
x <- c(1, 2, 3, 4, 5)
y <- c(2, 3, 4, 8, 10)
#dev.new()                                                        # 描画デバイスを開く
png("plot1.png", width=480, height=480)      # pngファイルを描画デバイスとして開く
plot(x, y)                                   # グラフを描く
#points(approx(x, y))               # 線形補間
lines(x, y)                                  # 折れ線グラフ
dev.off()                                    # 描画デバイスを閉じる
}}
#html(</div>)


トップ   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS