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

2008-07-25 Thread Zhaoyuan Fang
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

[Rd] grobX for points?

2008-07-25 Thread Felix Andrews
Hi R-devel, It seems that grobX and grobY (from the grid package) do not refer to the bounding box of a grid.points object. library(grid) library(lattice) xyplot(1:10 ~ 1:10) downViewport("plot1.panel.1.1.vp") grob <- grid.get("GRID.points", grep=TRUE) convertX(grobWidth(grob), "cm") # 10.3430190

Re: [Rd] head() for files

2008-07-25 Thread Gorjanc Gregor
>> I was thinking about using the head and tail functions also for files i.e. >> show me the first/last few lines of a file. For example: >> >> zz <- file("ex.data", "w") # open an output file connection >> cat("TITLE extra line", "2 3 5 7", "", "11 13 17", file = zz, sep = "\n") >> cat("One more

Re: [Rd] head() for files

2008-07-25 Thread Duncan Murdoch
On 25/07/2008 7:30 AM, Gorjanc Gregor wrote: Hi! I was thinking about using the head and tail functions also for files i.e. show me the first/last few lines of a file. For example: zz <- file("ex.data", "w") # open an output file connection cat("TITLE extra line", "2 3 5 7", "", "11 13 17", fi

[Rd] head() for files

2008-07-25 Thread Gorjanc Gregor
Hi! I was thinking about using the head and tail functions also for files i.e. show me the first/last few lines of a file. For example: zz <- file("ex.data", "w") # open an output file connection cat("TITLE extra line", "2 3 5 7", "", "11 13 17", file = zz, sep = "\n") cat("One more line\n", fil