[R] Help on creating custom financial time series graphs
Paul Murrell
p.murrell at auckland.ac.nz
Thu May 9 23:36:36 CEST 2002
Hi
> Hmmm,
>
> Not quite the response I was hoping for ;0(
>
> I chose R because of the cross platform capability. But I think it will be
> too difficult to re-write my functions in R.
>
> Basically, the porting from Win32 GDI API won't be to GraphApp will not be
> too difficult if any one can help with one of the ff:
>
> 1. GraphApp to Win32 GDI func mapping (this would REALLY help)
GraphApp is not used by R for cross-platform graphics. R has its own
graphics engine. This has a rough API described in
R/src/include/Rgraphics.h, although this is currently under review.
This API provides the basic graphical primitives (lines, curves, text,
..) plus some statistics-specific bells and whistles. Unfortunately, I
don't know the Win32 GDI so I can't provide a mapping.
> 2. A way to access the handle to a Graph Window (is this a HWND struct ?)
I may be missing something, but that wouldn't be cross-platform would
it?
> 3. How to write an R extension (I hear this is unnecessarily difficult to
> implement) that draws to the screen
I think the general support for writing R extensions is pretty good.
The support for writing R extensions _that draw to the screen_ is not so
good (hence the current review). Without the Win32 GDI to R graphics
API mapping, this would probably mean quite a bit of work for you.
4. Rewriting in R. This could well be a faster option than 3. If you
like, you could send me (or point me to) an example of the graphs you
are creating and I could try to give you a basic R example that provides
the features you want to implement.
Hope that helps.
Paul
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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