geom_image.rect: geom_image.rect

View source: R/functions_image_rect.R

geom_image.rectR Documentation

geom_image.rect

Description

geom layer for visualizing image files

Usage

geom_image.rect(
  mapping = NULL,
  data = NULL,
  stat = "identity",
  position = "identity",
  inherit.aes = TRUE,
  na.rm = FALSE,
  ...
)

Arguments

mapping

aes mapping

data

data

stat

stat

position

position

inherit.aes

logical, whether inherit aes from ggplot()

na.rm

logical, whether remove NA values

...

additional parameters

Value

geom layer

Author(s)

guangchuang yu

Examples

library("ggplot2")
library("ggimage")
set.seed(2017-02-21)
d <- data.frame(
    x = rnorm(10),
    y = rnorm(10),
    image = sample(c("https://www.r-project.org/logo/Rlogo.png",
                     "https://jeroenooms.github.io/images/frink.png"),
    size=10, replace = TRUE)
               )
ggplot(d, aes(xmin = x, xmax = 2*x, ymin = y, ymax = 2*y, image=image)) +
    geom_rect(fill = "blue") +
    geom_image.rect()


jrboyd/seqtsne documentation built on Nov. 5, 2022, 6:37 a.m.