[R] getting attributes of graphics objects

Serge Boiko boiko at demogr.mpg.de
Mon Jan 20 12:44:02 CET 2003


Hi there;
Is there a facility to query/get/modify graphics attributes in R? I mean
something similar to Matlab's get/set functions, say in order to get x and
y data in Matlab I use:

h=get(gcf, 'children')
xdata=get(h(1), 'xdata') % get x of the first children

Is there an R's counterpart? 

I'm aware of dev.copy() function, but it is of little help in this
situation. 

Many thanks, 
-Serge




More information about the R-help mailing list