On Sun, 11 Feb 2001, Tsumiyama Isao wrote:
Dear R users,
I want to create a C program drawing a scatter plot
with R functions.
Is it possible to do such a thing with interfaces declared
in 'Rgraphics.h'? If so, I would like to get sample C sources.
Strictly no. You would need to open an R graphics device, and you can't
do that from the publically declared headers. And you would need to
handle all the error conditions that call back into R.
From C code called from R you can write to an already opened graphics
device. Alternatives, you can embed R in your C program and then call R
graphics via R calls.
I don't think there are many examples: Rgraphics.h was included for
use by experts writing addons. Paul Murrell may be able to help more.