I have three groups (a, b, c) with associated values, that I want to plot as bar chart.
Using ggplot, I would like to insert a different image (in png format) in each bar. So in bar a, I want to insert the image 'a.png', in bar b, the image 'b.png' and in c the image 'c.png'
df = data.frame(
group = c('a', 'b', 'c'),
value = 1:3)
ggplot(df, aes(group, value)) +
geom_col()
The few posts I found are not helpful or very old.
Inserting an image to ggplot outside the chart area
https://www.reddit.com/r/rstats/comments/6qh4kt/how_to_make_ggplot_not_beautiful_insert_pictures/
Do you have an idea?
Thanks