Rでggplot2クオリティのグラフをカンタンに描画できるtidyplotsパッケージ / The tidyplots Package: Easily Create ggplot2-Quality Graphs in R

(2025/1/22に,もう少し詳細を紹介したPART2を公開しました)

昨日のお昼休みにご飯を食べながらSNSをみていたら,こんな投稿があることに気づきました。 https://x.com/HaoYin20/status/1858240189992202639

tidyplotsというのはRのパッケージの一つで,これまで美しいグラフの作成に多用されてきたggplot2と関連パッケージの内容を一つにまとめて,入力の文法を簡潔にしたパッケージです。

Engler JB (2024). “Tidyplots empowers life scientists with easy code-based data visualization.” bioRxiv.doi:10.1101/2024.11.08.621836

公開元の以下からパッケージをインストールしてきて試してみたのですが,これが便利!
ggplot2では細々としてオプションして記述が必要だった内容を極めて簡略に指定することができます。

tidyplots http://tidyplots.org

そこで後期に教えている2年生むけの生物情報処理演習の補足資料を急遽作成してしまいました。みなさんもぜひお試しください。

補足

  • tidyplotsは決してggplot2の置き換えではありません,作業簡潔化ができるというかんじです。
  • ggplot2そのものの日本語による紹介はいろいろありますが,理学部の石川由希先生による以下のサイトがわかりやすいので紹介します。

English

Yesterday during my lunch break, while scrolling through social media, I came across this post: https://x.com/HaoYin20/status/1858240189992202639

tidyplots is an R package that consolidates the functionalities of ggplot2 and related packages, which have been widely used for creating beautiful graphs. It simplifies the syntax needed for input.

Engler JB (2024). “Tidyplots empowers life scientists with easy code-based data visualization.” bioRxiv.doi:10.1101/2024.11.08.621836

I downloaded and tried the package from the official site, and it’s fantastic!
Tasks that used to require detailed option specifications in ggplot2 can now be done with much simpler commands.

tidyplots: http://tidyplots.org

This inspired me to quickly create supplemental materials for a second-year bioinformatics practical course that I’ll be teaching this semester. I highly recommend giving it a try!

Additional Notes

  • tidyplots is not a replacement for ggplot2 but rather a tool to simplify certain tasks.