Movatterモバイル変換


[0]ホーム

URL:


ggragged

Lifecycle: stableR-CMD-checkCodecov test coverageCRAN status

ggragged extends the faceting system inggplot2 to ragged grids—ahybrid layout betweenfacet_wrap() andfacet_grid().

Installation

Install the current release fromCRAN:

install.packages("ggragged")

Or the development version fromGitHub:

remotes::install_github("mikmart/ggragged")

Example

Ragged grids can be used to clearly separate nested hierarchies inthe panel layout:

library(ggplot2)library(ggragged)p<-ggplot(mpg,aes(displ, cty))+geom_point()p+facet_ragged_rows(vars(drv),vars(cyl))

p+facet_ragged_cols(vars(cyl),vars(drv))


[8]ページ先頭

©2009-2025 Movatter.jp