draw_key_pic: Draw key function for geom_bar_pic

Description Usage Arguments Details

View source: R/geom_bar_pic.R

Description

To be able to generate a legend with the raster image, ggpic needs a custom draw_key function.

Usage

1
draw_key_pic(data, params, size)

Arguments

data

A single row data frame containing the scaled aesthetics to display in this key

params

A list of additional parameters supplied to the geom.

size

Width and height of key in mm.

Details

When pic and fill aesthetics does not map to the same variable, fill guide is redirected to draw_key_rect and pic guide to a raster grob.


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