How to use .ICO
image files in plots programmatically with/without conversion?
My question is a follow-up of How to convert .ICO to .PNG?, targeted to R
, and with the following specific details:
I am not asking about methods involving transcluding the icons within an
HTML
, e.g. inside ashiny
app (author: RStudio). That is of course possible.Can the icons
.ICO
files be used directly in a base-R plot, a ggplot object (author: Hadley Wickham) , a lattice plot (author: Deepayan Sarkar)? And will this approach be robust to printing the output toPDF
?How to convert the
ICO
icons toPNG
with or without a dedicatedR
library. This method would be careful to handle the icon's image size, depth, transparency, and other potentially important properties.
The motivation for this is simply that there are many open-source libraries of icons that one could use inside plot objects, e.g. Inserting an image to ggplot2, Display custom image as geom_point, Inserting an image to ggplot outside the chart area.
In the question I cite at the top, How to convert .ICO to .PNG?, there are examples of code in C#
and in Python
, but none in R
.