grob_image: Grob Image

Description Usage Arguments Value Examples

View source: R/grob_object_functions.R

Description

Initialize a grob image object, to be used within grob_col.

Usage

1

Arguments

x

Either a ggplot object, a file path to .png image or a URL to a .png image.

Value

An R6 object of the grob image class.

Examples

1
2
3
4
5
6
7
gg = data.frame(x = c(5, 14, 6, 10), y = c(3, 30, 17, 7)) %>%
  ggplot2::ggplot(mapping = ggplot2::aes(x = x, y = y)) +
  ggplot2::geom_line(color = 'red') 
  
gg %>%
  grob_image() %>%
  view_grob()

grobblR documentation built on Sept. 15, 2021, 1:07 a.m.