Skip to content
Prev 395262 / 398502 Next

Plot to a device and examine the plot?

Hi All,

I want to inspect the content of a plot generated by another function.

For example:

plot.new()
polygon(c(.5, .5, .75, .8), c(.25, .3, .4, .5))

A polygon will be drawn. If I do not know what has been done to generate
the plot, is it possible to query the content in the active device?

Regards,
Shu Fai