PROTECTED]
(801) 408-8111
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Josh Tolley
> Sent: Thursday, November 15, 2007 2:08 PM
> To: r-help@r-project.org
> Subject: [R] Graphics device storable in a variable
>
> I'm u
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
-Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Josh Tolley
> > Sent: Thursday, November 15, 2007 2:08 PM
> > To: r-help@r-project.org
> > Subject: [R] Graphics device storable in a variable
> >
> > I'm
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),
and then use PostgreSQL to read from that file and return it to the
client. It would be
6 matches
Mail list logo