R Under development (unstable) (2014-03-13 r65182) -- "Unsuffered Consequences" Copyright (C) 2014 The R Foundation for Statistical Computing Platform: x86_64-unknown-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. [Previously saved workspace restored] > > library(gridSVG) Attaching package: 'gridSVG' The following object is masked from 'package:grDevices': dev.off > library(grid) > library(png) > > cpiImage <- readPNG("cpi.png") > > gridsvg("test.svg") > grid.rect(width=.5, height=.5, gp=gpar(fill="white")) > grid.raster(cpiImage, width=.4, height=.4) > grid.circle(x=.6, y=.7, r=.2) > blurAlpha <- feGaussianBlur(input="SourceAlpha", + sd=5, result="blur") > offset <- feOffset(input="blur", + unit(3, "mm"), unit(-3, "mm"), + result="drop") > composite <- feComposite(input1="SourceGraphic", + input2="drop") > drop <- filterEffect(list(blurAlpha, offset, composite)) > grid.filter(".", drop, grep=TRUE, global=TRUE) > dev.off() > > proc.time() user system elapsed 1.692 0.044 1.786