The goal of ggtibble
is to allow creation of similarly-formatted figures as lists of ggplots (gglist) and tibbles of those lists with captions. These are augmented with knit_print()
methods enabling simple inclusion in reports.
You can install the development version of ggtibble
from GitHub with:
# install.packages("devtools") devtools::install_github("humanpred/ggtibble")
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)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4