pos_wrap_png: Title

View source: R/pos_wrap_png.R

pos_wrap_pngR Documentation

Title

Description

Title

Usage

pos_wrap_png(
  x0 = 0,
  y0 = 0,
  n = 5,
  ncol = 3,
  png = system.file("img", "Rlogo.png", package = "png"),
  image = png::readPNG(png),
  width = 1,
  height = width * dim(image)[1]/dim(image)[2]
)

Arguments

x0

numeric for x starting point for positioner

y0

numeric for y starting point for positioner

n

number of positions

ncol

number of columns before wrap

png

a string with the path to an image, defaults to R image

image

a numeric array with png red green blue alpha information, defaults to png::readPNG(png)

width

the width that the image should fill, defaults to 1

height

the height that the image should fill, calculated to match aspect ratio based on width

Examples

ggcanvas() +
    stamp_png(x0y0 = pos_wrap_png(n = 7)) +
    stamp_png(x0y0 = pos_wrap_png(n = 5,
              y0 = -2.5), width = .85)

EvaMaeRey/ggstamp documentation built on June 30, 2022, 11 p.m.