[R] MetaPost device?

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Thu Apr 6 17:35:57 CEST 2000


"Vidhyanath Rao" <rao.3 at osu.edu> writes:

> 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.

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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