Questions tagged [ggimage]

An R package aims to support image files and graphic objects visualization based on 'ggplot2' graphic system.

Resources:

  1. cran.r-project.org
  2. github
34 questions
0
votes
1 answer

Add a image in a fixed point in a bar plot

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')) + …
Pedro BP
  • 73
  • 5
0
votes
2 answers

R: geom_image gets deformed by coord_fixed

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…
Jan Kislinger
  • 1,441
  • 14
  • 26
0
votes
1 answer

How to use images as xy-plot points having data driven angles

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), …
hbelbo
  • 167
  • 1
  • 9
0
votes
1 answer

ggplot2: Full plot size image

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 =…
MYaseen208
  • 22,666
  • 37
  • 165
  • 309
1 2
3