| ebimageGrob {gridExtra} | R Documentation |
create a grob from EBImage object
ebimageGrob(pic, x = 0.5, y = 0.5, scale = 1,
raster = FALSE, angle = NULL, ...)
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 |
Very primitive function, using RGraphics' imageGrob or rasterGrob (R>2.11)
a gTree of class 'ebimage', with natural width and height in points
Other grob userlevel: arcTextGrob,
barbedGrob, borderGrob,
colorstripGrob, ellipseGrob,
interleaven, ngonGrob,
patternGrob, pixmapGrob,
rpatternGrob, stextGrob,
tableGrob, virtualGrob
## 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)