pos_wrap_png.Rd
Title
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] )
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 |
ggcanvas() + stamp_png(x0y0 = pos_wrap_png(n = 7)) + stamp_png(x0y0 = pos_wrap_png(n = 5, y0 = -2.5), width = .85)#>#>#> Warning: Raster pixels are placed at uneven horizontal intervals and will be shifted. Consider using geom_tile() instead.#> Warning: Raster pixels are placed at uneven vertical intervals and will be shifted. Consider using geom_tile() instead.