ebimageGrob: create a grob from EBImage object

Description Usage Arguments Details Value See Also Examples

Description

create a grob from EBImage object

Usage

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

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

Details

Very primitive function, using RGraphics' imageGrob or rasterGrob (R>2.11)

Value

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

See Also

Other grob userlevel: arcTextGrob, barbedGrob, borderGrob, colorstripGrob, ellipseGrob, interleaven, ngonGrob, patternGrob, pixmapGrob, rpatternGrob, stextGrob, tableGrob, virtualGrob

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)

ttriche/oldGridExtra documentation built on June 1, 2019, 2:51 a.m.