You might try looking at the tkrplot package, it uses win.metafile and
captures the graphics device into a variable (which is then put into a
tk lable, but you could probably do something else with it).
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
[EMAIL PROTEC
On Nov 15, 2007 2:41 PM, Michael Lawrence <[EMAIL PROTECTED]> wrote:
> This is possible using the cairoDevice package and RGtk2.
>
> Turning an R graphic into a raw vector of bytes:
>
> library(cairoDevice)
> library(RGtk2)
>
> # create a pixmap and tell cairoDevice to draw to it
>
> pixmap <- gdkP
Just an couple of ideas that might or might not work ...
Josh Tolley a écrit :
> I'm using R embedded in PostgreSQL (via PL/R), and would like to use
> it to create images. It works fine, except that I have to create every
> image in a file (owned by and only readable by the PostgreSQL server),
>
This works on Windows:
dev.control(displaylist="enable") # enable display list
plot(1:10)
myplot <- recordPlot() # load displaylist into variable
You can now store myplot and later fetch it and play it
back via
myplot
# or if not from the console
print(myplot)
On Nov 15, 2007 4:07 PM, Josh Tol
This is possible using the cairoDevice package and RGtk2.
Turning an R graphic into a raw vector of bytes:
library(cairoDevice)
library(RGtk2)
# create a pixmap and tell cairoDevice to draw to it
pixmap <- gdkPixmapNew(w=500, h=500, depth=24)
asCairoDevice(pixmap)
# make a dummy plot
plot(1:1
5 matches
Mail list logo