[Rd] the C function drawing a rectangle: heatmap() -> image() -> do_image() -> GRect() -> GERect() -> rect() -> do_rect() -> GRect() ??

Peter Dalgaard p.dalgaard at biostat.ku.dk
Sat Jul 26 09:54:45 CEST 2008

Zhaoyuan Fang wrote:
> Hello anyone used to do similar things: search for the final C function that corresponding to the drawing of a rectangle? 
> As listed in the subject, I started from heatmap() in R and after several steps reached the GRect() in C. However, then it refers to rect() which further seems to refer to do_rect(), and then, surpringly, do_rect refers to GRect()!!! A dependency circle! How can it work if no functions soly taking the job for drawing a rectangle?  
> I know there must be somewhere wrong in my above function "chain", and can you help me to find it out? Many thanks!
> https://stat.ethz.ch/mailman/listinfo/r-devel
I see GRect() calling GERect() calling dd->dev->rect(), i.e. a function 
in the current device structure. This will typically have been set to 
something like X11_Rect() or Cairo_Rect() or ....

   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)              FAX: (+45) 35327907

More information about the R-devel mailing list