How could I move the image of the arrow over the 2004 bar?
Thanks in advance!
This is my code:
data %>%
ggplot(aes(x=year, y=value, fill = gender)) +
geom_bar(stat = "identity") +
scale_fill_manual(values= c('#1380c9', '#ff6262')) +
…
I am trying to place images to a plot that needs to have fixed coordinates (x, y values are GPS coordinates and I want the map to scale correctly). If the ranges of x and y don't match the images are flatted.
I don't know if this is a bug or desired…
I can not figure out how to use .gif figures as points in x-y plotting, and rotate each point according to data in the dataset.
Demo dataset:
library("ggplot2")
library("ggimage")
N=5
d <- data.frame(x = rnorm(N),
y = rnorm(N),
…
I wonder how to get ggplot2 graph with full plot size image
library("ggplot2")
library("ggimage")
set.seed(12345)
df1 <- data.frame(x = rnorm(1),
y = rnorm(1),
image =…