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.
1 | pic_load_and_fill(pic, fill, alpha, asis)
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.