我想知道如何获得带有完整绘图大小图像的 ggplot2 图
library("ggplot2")
library("ggimage")
set.seed(12345)
df1 <- data.frame(x = rnorm(1),
y = rnorm(1),
image = "https://www.r-project.org/logo/Rlogo.png")
ggplot(df1, aes(x, y)) +
geom_image(aes(image=image), size=.05)
df2 <- data.frame()
ggplot(df2) +
geom_point()