From 88934d454d29644f052d38e971521929332d4942 Mon Sep 17 00:00:00 2001 From: baptiste Date: Mon, 29 Feb 2016 14:15:59 +1300 Subject: [PATCH] release --- DESCRIPTION | 2 +- R/tableGrob.r | 1 + inst/NEWS.md | 11 +++++++++++ man/tableGrob.Rd | 2 ++ 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 9e0b40a..62ab5c9 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -8,7 +8,7 @@ License: GPL (>= 2) Title: Miscellaneous Functions for "Grid" Graphics Type: Package Description: Provides a number of user-level functions to work with "grid" graphics, notably to arrange multiple grid-based plots on a page, and draw tables. -Version: 2.1.0 +Version: 2.2.0 URL: https://github.com/baptiste/gridextra VignetteBuilder: knitr Imports: diff --git a/R/tableGrob.r b/R/tableGrob.r index d6ffefd..928cbde 100644 --- a/R/tableGrob.r +++ b/R/tableGrob.r @@ -68,6 +68,7 @@ grid.table <- function(...) #' @param base_size default font size #' @param base_colour default font colour #' @param parse logical, default behaviour for parsing text as plotmath +#' @param padding length-2 unit vector specifying the horizontal and vertical padding of text within each cell #' @importFrom utils modifyList ##' @export ttheme_default <- function(base_size=12, diff --git a/inst/NEWS.md b/inst/NEWS.md index 5c45a14..b2ce02f 100644 --- a/inst/NEWS.md +++ b/inst/NEWS.md @@ -1,3 +1,14 @@ +# gridExtra 2.2.0 (2016-02-27) + +## NEW FEATURES + +* added padding argument to table themes +* simplified a few theme arguments + +## BUG FIX + +* recycling logic was flawed for aesthetics in table cells + # gridExtra 2.1.0 (2015-07-27) ## DOCUMENTATION diff --git a/man/tableGrob.Rd b/man/tableGrob.Rd index b34205e..efb6cc4 100644 --- a/man/tableGrob.Rd +++ b/man/tableGrob.Rd @@ -37,6 +37,8 @@ ttheme_minimal(base_size = 12, base_colour = "black", parse = FALSE, \item{base_colour}{default font colour} \item{parse}{logical, default behaviour for parsing text as plotmath} + +\item{padding}{length-2 unit vector specifying the horizontal and vertical padding of text within each cell} } \value{ A gtable.