patchworkはggplot2により作成された複数のプロットをめちゃ簡単に組み合わせられるようにすることを目標として開発されているパッケージだ。 同様の目的のパッケージ、関数として、gridExtra::grid.arrange()やcowplot::plot_grid()があるが、これらで上手くやろうとすると試行錯誤が結構必要となる。 これに対し、patchworkでは演算子を使った直感的な記法でプロットを組み合わせられるので、より簡単で可読性に優れた記述が可能となる。 インストール 現在はCRANからインストールできる。 # devtools::install_github("thomasp85/patchwork") install.packages("patchwork")
Developers Ross Ihaka Author Paul Murrell Author Kurt Hornik Author Jason C. Fisher Author Reto Stauffer Author Claus O. Wilke Author Claire D. McWhite Author Achim Zeileis Author, maintainer Developed by Ross Ihaka, Paul Murrell, Kurt Hornik, Jason C. Fisher, Reto Stauffer, Claus O. Wilke, Claire D. McWhite, Achim Zeileis.
Histograms and bar charts are almost always a part of data analysis presentation. If it is made with R ggplot package functions geom_histogram() or geom_bar() then bar chart may look like this: The elegance of ggplot functions realizes in simple yet compact expression of visualization formula while hiding many options assumed by default. Hiding doesn't mean lacking as most options are just a step
The cowplot package is a simple add-on to ggplot. It provides various features that help with creating publication-quality figures, such as a set of themes, functions to align plots and arrange them into complex compound figures, and functions that make it easy to annotate plots and or mix plots with images. The package was originally written for internal use in my lab, to provide my students and
息抜きにRzThemeEditorで作ってみたら,息抜きにならないぐらい一瞬でした。 ggplot2のテーマを手軽に作成・編集する(R Advent Calendar 2012) - はやしのブログ Rev.3 せっかくなので公開しておきます。 「執筆・投稿の手引き」を見て作りましたが,正しさに責任は持ちません。 こんな感じです。 p <- ggplot(data = iris, aes(x = Sepal.Length, y = Sepal.Width, colour = Species)) p <- p + geom_point() p <- p + scale_colour_grey() p <- p + theme_JPR() print(p)
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く