[R] MetaPost device?

Paul Murrell paul at stat.auckland.ac.nz
Thu Apr 6 22:17:42 CEST 2000


hi


> > I would like to know if a MetaPost device is available or in the plans.
> > A search MetaPost in the documents and list archives did not turn up
> > anything. [I would prefer to use MetaPost when the graphics is to be
> > included in a document that I want in both hard-copy and in pdf
> > formats.]
> > 
> > If not, how easy/hard is it to add a new device to R? I caouln't see
> > anything about adding devices in the extentions manual. Do I need to
> > know R internals in detail? An alternative approach would be to take
> > plotting information and produce MetaPost output via, say, Perl. But I
> > don't know how get the information printed out either.
> 
> It's not terribly hard (said the man who people have been nagging to
> do an xfig driver for years...) if you know the file format to
> generate. You need to figure out how to do do a rather small
> set of primitives to do text, polylines, etc., and then fill routines
> to do those into a fairly simple framework. Take a look at the
> existing drivers to get an impression of what is required.


In particular, devX11.c has the most documentation about what the
driver functions should do.

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