Skip to content

Commit

Permalink
version bump, minor doc fix, purrr import, 1 grid::gpar
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardJActon committed Jul 9, 2021
1 parent 247a591 commit f7421cf
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: colourScaleR
Title: What the Package Does (One Line, Title Case)
Version: 1.0.1.9000
Version: 1.1.1
Authors@R:
person(given = "Richard J.",
family = "Acton",
Expand All @@ -21,6 +21,7 @@ Imports:
circlize,
stats,
grid,
gridExtra
gridExtra,
purrr
Depends:
R (>= 2.10)
1 change: 0 additions & 1 deletion R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
#'
#' Display a summary description of the available palettes
#'
#' @format
#'
"combined_palette_info"
4 changes: 3 additions & 1 deletion R/palette_info_show.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#' pal_info_grob
#'
#' @param pal_inf the palette information table
#'
pal_info_grob <- function(pal_inf) {
mx <- ifelse(is.finite(pal_inf$maxcolors),pal_inf$maxcolors, 11)
palette <- colourScaleR::universal_colour_scaler(
Expand All @@ -11,7 +13,7 @@ pal_info_grob <- function(pal_inf) {

grab <- grid::grid.grabExpr(expr = {
grid::pushViewport(
grid::viewport(gp = gpar(fill = "white", col = "black", lwd = 2))
grid::viewport(gp = grid::gpar(fill = "white", col = "black", lwd = 2))
)
grid::grid.raster(
width = 0.9, height = 0.6, matrix(palette, nrow = 1),
Expand Down
2 changes: 1 addition & 1 deletion man/combined_palette_info.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/pal_info_grob.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f7421cf

Please sign in to comment.