R

scale_x_datetimeの引数がないとか言われて使えない

問題 scale_x_datetimeの引数がないとか言われて使えない p1 以下にエラー continuous_scale(aesthetics, "datetime", identity, breaks = breaks, : 使われていない引数 (major = "2 weeks") 解決 Google グループ require(scales) で解決

ノードに画像を描画

## image rasters <- c(); for(v in V(g)$name){ jpg <- paste("/Users/ukonlly/data/", v, ".jpg", sep=""); url <- paste("file://", jpg, sep=""); if(file.exists(jpg)){ con <- url(url, open="rb") bin <- readBin(con, what="raw", n=10^6) close(con…

複数のgeom_line

R - ggplot2で、複数の時系列を一枚にプロット - Qiita R - ggplot2で、複数の時系列を一枚にプロット - Qiita <a href="http://stat.biopapyrus.net/ggplot/geom-line.html" data-mce-href="http://stat.biopapyrus.net/ggplot/geom-line.html">geom_line | ggplot2で折れ線グラフ</a> geom_line | ggplot2で折れ線グラフ 問題

ggplot2で日本語フォント指定

theme_set( theme_bw( base_family= "Hiragino Kaku Gothic Pro W3")) r - Modifying fonts in ggplot2 - Stack Overflow

R 3.1.1に ggplot2とRMySQLをインストール on OS X 10.9.4

gglot2を使いためにRのバージョンを2.xから3.1.1に上げたが、するとRMySQLがRStudioのパッケージ機能ではインストールできなくなった。 r - Installing RMySQL in mavericks - Stack Overflow $ export PKG_CPPFLAGS="-I/usr/local/mysql/include"$ export P…

plotなどで日本語の文字化け解消

R

https://www.youtube.com/watch?v=z1kBuKQz4Ds plot(data, family = "ploHiragino Kaku Gothic Pro W3" のようにfamily属性にフォント名指定。

Error in plot.new() : figure margins too large

RStudioでこんなエラーがでたときの対処法 Error in plot.new() : figure margins too large ワークスペース内に描画スペースのサイズを大きくすると解決することがある。

指定要素が含まれる行の別の要素をとってくる

R

http://stackoverflow.com/questions/6651722/search-through-a-table-in-r X[X[,1]=="C",2] X["C",2]

install R言語 version 3.02 on Ubuntu

R

http://qiita.com/foloinfo/items/a7b38084add3bb70f6ca # add source to apt. sudo vim /etc/apt/sources.list # add line below deb http://cran.rstudio.com/bin/linux/ubuntu precise/sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E0…