Description Usage Arguments Details
To be able to generate a legend with the raster image, ggpic needs a custom
draw_key
function.
1 | draw_key_pic(data, params, size)
|
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.