From fangzy_2005 at 163.com  Sat Jul 26 10:16:12 2008
From: fangzy_2005 at 163.com (=?utf-8?B?Wmhhb3l1YW4gRmFuZw==?=)
Date: Sat, 26 Jul 2008 16:16:12 +0800
Subject: [Rd]
	=?utf-8?q?the_C_function_drawing_a_rectangle=3A_heatmap=28?=
	=?utf-8?b?KSAtPiBpbWFnZSgpLT4JZG9faW1hZ2UoKSAtPiBHUmVjdCgpIC0+IEdF?=
	=?utf-8?b?UmVjdCgpIC0+IHJlY3QoKQ==?=
References: <200807261055078432709@163.com>, <488AD845.7040200@biostat.ku.dk>
Message-ID: <200807261616094217204@163.com>

But rect() still seems to call -> do_rect() -> GRect(), and thus turns back?? How do you consider this strange thing? Thanks!

------------------				 
Best wishes,
Zhaoyuan

-------------------------------------------------------------
????Peter Dalgaard
?????2008-07-26 15:56:39
????fangzy2007 at gmail.com
???R-devel Mailing List
???Re: [Rd] the C function drawing a rectangle: heatmap() -> image()->	do_image() -> GRect() -> GERect() -> rect() 

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

______________________________________________
R-devel at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] =?utf-8?q?the_C_function_drawing_a_rectangle=3A_heatmap=28?= =?utf-8?b?KSAtPiBpbWFnZSgpLT4JZG9faW1hZ2UoKSAtPiBHUmVjdCgpIC0+IEdF?= =?utf-8?b?UmVjdCgpIC0+IHJlY3QoKQ==?=
=?utf-8?B?Wmhhb3l1YW4gRmFuZw==?=