RE: [R] using graphapp.h

About this list Date view Thread view Subject view Author view Other groups

Subject: RE: [R] using graphapp.h
From: Vadim Kutsyy (vadim@kutsyy.com)
Date: Wed 28 Jun 2000 - 22:28:45 EST


Message-ID: <OFEGJMACADMFOKHCCFBJAEONCIAA.vadim@kutsyy.com>

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
plot().

Thanks.

---------------------------
Vadim Kutsyy
vadim@kutsyy.com
http://www.kutsyy.com

> -----Original Message-----
> From: Guido Masarotto [mailto:guido@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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b25 : Mon 17 Jul 2000 - 12:33:25 EST