gridExtra (version 0.6.5)

pixmapGrob: create a grob from pixmap object...

Description

create a grob from pixmap object

Usage

pixmapGrob(pic, x=0.5, y=0.5, scale=1, raster=FALSE, angle=0, ...)

Arguments

pic
pixmap object
x
x unit
y
y unit
scale
scale
raster
raster
angle
angle
...
optional grob parameters, passed to imageGrob

Value

  • a gTree of class 'pixmap', with natural width and height in points

Examples

Run this code
library(pixmap)
library(RGraphics)
x <- read.pnm(system.file("pictures/logo.ppm", package="pixmap")[1])
g1 <- pixmapGrob(x)
dev.new(width=g1$width/72, height=g1$height/72) 
grid.draw(g1)

Run the code above in your browser using DataLab