Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Create tibbles and lists of ggplot figures that can be modified as easily as regular ggplot figures

License

NotificationsYou must be signed in to change notification settings

humanpred/ggtibble

Repository files navigation

R-CMD-checkCRAN statusCodecov test coverage

The goal ofggtibble is to allow creation of similarly-formatted figures aslists of ggplots (gglist) and tibbles of those lists with captions. These areaugmented withknit_print() methods enabling simple inclusion in reports.

Installation

You can install the development version ofggtibble fromGitHub with:

# install.packages("devtools")devtools::install_github("humanpred/ggtibble")

Example

This is a basic example which shows you how to solve a common problem:

library(ggtibble)d_plot<-data.frame(A= rep(c("foo","bar"),each=4),B=1:8,C=11:18,Bunit="mg",Cunit="km"  )all_plots<-  ggtibble(d_plot,ggplot2::aes(x=B,y=C),outercols= c("A","Bunit","Cunit"),caption="All the {A}",labs=list(x="B ({Bunit})",y="C ({Cunit})")  )+ggplot2::geom_point()+ggplot2::geom_line()knit_print(all_plots)

About

Create tibbles and lists of ggplot figures that can be modified as easily as regular ggplot figures

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp