Description Usage Arguments Details Value See Also Examples
create a grob from pixmap object
1 2 | pixmapGrob(pic, x = 0.5, y = 0.5, scale = 1,
raster = FALSE, angle = 0, vp = NULL, ...)
|
pic |
pixmap object |
x |
x unit |
y |
y unit |
scale |
scale |
raster |
raster |
angle |
angle |
vp |
viewport |
... |
optional grob parameters, passed to imageGrob or rasterGrob |
Very primitive function, using RGraphics' imageGrob or rasterGrob (R>=2.11)
a gTree of class 'pixmap', with natural width and height in points
Other grob userlevel: arcTextGrob
,
barbedGrob
, borderGrob
,
colorstripGrob
, ebimageGrob
,
ellipseGrob
, interleaven
,
ngonGrob
, patternGrob
,
rpatternGrob
, stextGrob
,
tableGrob
, virtualGrob
1 2 3 4 5 6 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.