以下の内容はhttps://seinzumtode.hatenadiary.jp/entry/20140422/1398151822より取得しました。


Rの外部ファイルを実行する

sourceコマンドを使う。

irisplot.R

library(ggplot2)
p <- ggplot(iris,aes(x=Sepal.Length,y=Sepal.Width,color=Species))+geom_point()

R

> source("irisplot.R")
> p



以上の内容はhttps://seinzumtode.hatenadiary.jp/entry/20140422/1398151822より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14