[R] using graphapp.h

Vadim Kutsyy vadim at kutsyy.com
Wed Jun 28 14:28:45 CEST 2000

What I need to do as to plot a few tens thousands squares of different
colors.  As David mention, it can be done with polygon(), but it still be
slow.  So I am trying to do it from c code.

As a result, I open the window with plot(), and then I want to plot in to
that window from c code (in S it is done using "graphics.h").  The only
thing I could think about, is to use "graphapp.h".  "graphapp.h" defines a
lot of function for that (fillrect(rect r) for example), but I can not
figure out how to make it grow in that window, which is already open by


Vadim Kutsyy
vadim at kutsyy.com

> -----Original Message-----
> From: Guido Masarotto [mailto:guido at sirio.stat.unipd.it]
> Sent: Wednesday, June 28, 2000 7:51 AM
> To: Vadim Kutsyy
> Cc: R list
> Subject: Re: [R] using graphapp.h
> On Wed, Jun 28, 2000 at 07:50:07AM -0400, Vadim Kutsyy wrote:
> > > > "graphapp.h" in R1.1 defines number of plotting function.
> is there an
> > > > example of how to use them?
> > > >
> > >
> > >   Look into the src/gnuwin32/windlgs directory in the R source.
> > >   It is an example of a package, contributed by Brian Ripley,
>  which use
> > >   'graphapp'.
> > >   The Rgui interface and the Windows screen device are written
> > >   using graphapp, too. The relevant files (in src/gnuwin32) are
> > >   rui.c, console.c, pager.c, preferences.c and devga.c.
> > >
> >
> > I've seen it, however, this one is an example of creating
> dialog boxes, I
> > need to create plots.  so far, I can not figure out, how to
> tell it to plot
> > in the given window (which is already open).
> >
>   devga.c is an example. And of course you need the Graphapp manual
>   (available at http://www.cs.su.oz.au/~loki/graphapp/).
>   But, what does "already open" mean? Which window?
>   guido

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list