[R] MetaPost device

Vidhyanath Rao rao.3 at osu.edu
Sun May 7 04:37:22 CEST 2000


Several weeks back I raised the question of implementing a MetaPost
device. I finally got some time to look at the source code of other
device drivers in R. Everything else is easy except for text. It seems
that R wants the font metrics information from its device drivers.
PicTeX driver gets around this by allowing only four fonts and
hard-coding the tfm info into itself. This seems rather draconian. It
would mean, for example, that any mathematical typesetting will stick
out. As my interest was soley for using R's graphs in TeX files and get
both dvi and pdf outputs painlessly from, a MetaPost driver for R seems
to be more trouble than is worth.

The major problem seems to be that R considers the device drivers to be
fairly limited in terms of typesetting. MetaPost is the other extreme.
It seems to me that it would be better to extract information from R and
produce MetaPost input. [MetaPost already has a graph package that does
2d graphing.] The only problem is that it is not always clear how to get
the information out. For example, qqnorm and qqplot are documented as
returning the list of points that will be plotted. But nothing is said
concerning qqline and it is still not clear to me if I have to basically
implement it from scratch (or rather by copying the code). Perhaps this
is one more thing for the documentation team to take care of :-).




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