pic_load_and_fill: Raster load and fill helper function

Description Usage Arguments

View source: R/geom_bar_pic.R

Description

Loading the raster image and filling int must be done in the draw_group function inside de GeomBarPic class and also in the draw_key_pic function. This helper function do that and as a outside function is easy to maintain.

Usage

1
pic_load_and_fill(pic, fill, alpha, asis)

Arguments

pic

character with the raster or matrix object name

fill

fill colour, as character

alpha

alpha as numeric, from 0 (full transparency) to 1 (full opaque)

asis

logical indicating if the pic must be filled or maintained as it is.


MalditoBarbudo/ggpic documentation built on May 7, 2019, 2:09 p.m.