Thanks for the further tips! I'll look at the R Internals manual,
the other built-in devices, and the RSvgDevice package. And I'm
still looking for the S source code, but I have a feeling that I'll
wind up writing the device before I find the source code.

> It may be useful to look at existing interfaces to an HPGL device in other 
> graphics applications. One such application is xgraph and here is the C code 
> for one implementation:
> 
> http://xgraph.sourcearchive.com/documentation/12.1-3/hpgl_8c-source.html
> 
> The other option might be to enlist an external program such as GNUPLOT that 
> has an HPGL output and use it as a driver to which you send an image in a 
> file format that R can produce.

While this would be a good idea for pretty much any other file format,
it probably will make things more complicated for HPGL as the structure
of base R graphics is kind of exactly the same as HPGL.

Tom

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to