ebimageGrob: create a grob from EBImage object...

Description Usage Arguments Value Examples

View source: R/ebimage.r

Description

create a grob from EBImage object

Usage

1
2
ebimageGrob(pic, x=0.5, y=0.5, scale=1, raster=FALSE,
    angle, ...)

Arguments

pic

object of class Image

x

x unit

y

y unit

scale

numeric scale factor

raster

logical: use rasterGrob(R>=2.11) or imageGrob(RGraphics)

angle

numeric: angle in degrees

...

optional grob parameters, passed to imageGrob or rasterGrob

Value

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

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(EBImage)
library(RGraphics)
x <- readImage("http://www.google.com/logos/teachersday09.gif")
g1 <- ebimageGrob(x)
dev.new(width=g1$width/72, height=g1$height/72) 
grid.draw(g1) 

## End(Not run)

gridExtra documentation built on May 31, 2017, 2:48 a.m.