I have the following dataframe that I've used to create a chart in ggplot2
. Is there a simple way to add my logo (img
) to the bottom right hand corner of the plot?
library(tidyverse)
library(magick)
img <- image_read("https://i.ibb.co/k0rYhnr/logo.png") %>%
image_resize(300)
data <-
structure(list(Date = structure(c(18262, 18628, 18993), class = "Date"),
Value = c(2, 3, 4)), row.names = c(NA, -3L), class = c("tbl_df",
"tbl", "data.frame"))
data %>%
ggplot(., aes(Date, Value)) +
geom_line()