search for: drawdetail

Displaying 8 results from an estimated 8 matches for "drawdetail".

Did you mean: drawdetails
2009 Sep 27
0
puzzle with drawDetails for a class derived from a gTree
Dear all, I've tried all sorts of variations discussed in "R graphics" by Paul Murrell, but I still can't understand how to write a drawDetails method for a class derived from a gTree. Below is a minimal, dummy example where two strings are plotted in two separate viewports. I require the creation of the strings to be evaluated inside the drawDetails function because my real example will need to calculate a grob size on-the-fly (the viewp...
2013 Mar 20
0
How to avoid using gridextra via Depends instead of Imports in a package ?
...-------- export(panelinplot2) export(plot_fdr) importFrom(grid,gpar) importFrom(grid,grid.draw) importFrom(grid,grid.rect) importFrom(grid,grid.text) importFrom(grid,grob) importFrom(grid,popViewport) importFrom(grid,pushViewport) importFrom(grid,unit) importFrom(grid,viewport) importFrom(gridExtra,drawDetails.lattice) importFrom(lattice,ltext) importFrom(lattice,panel.segments) importFrom(lattice,panel.xyplot) importFrom(lattice,stripplot) importFrom(lattice,xyplot) importFrom(latticeExtra,as.layer) importFrom(latticeExtra,layer) importFrom(reshape,sort_df) Then if you execute this script: without_ex...
2008 Feb 05
2
Error in grid.text after tcltk package loaded
...traceback always looks like this: > traceback() 5: .Call.graphics(fnname, ..., PACKAGE = "grid") 4: grid.Call.graphics("L_text", as.graphicsAnnot(x$label), x$x, x$y, resolveHJust(x$just, x$hjust), resolveVJust(x$just, x$vjust), x$rot, x$check.overlap) 3: drawDetails.text(x, recording = FALSE) 2: drawDetails(x, recording = FALSE) 1: drawGrob(x) I can only get these messages to happen after loading the tcltk package, using grid.text, with 'many' text strings (happens rarely with 100, almost every move with 1000 strings as in my example). I found jus...
2010 Mar 19
2
lattice grob
...far as I understand, lattice produces a list of class trellis, which is eventually displayed using the plot.trellis method. I am not sure if/how one can convert this list into a high-level grob. I tried the following, latticeGrob <- function(p, ...){ grob(p=p, ..., cl="lattice") } drawDetails.lattice <- function(x, recording=FALSE){ lattice:::plot.trellis(x$p) } p1 <- xyplot(1:10 ~ 1:10) g1 <- latticeGrob(p1) grid.draw(g1) # works fine but, fg <- frameGrob(layout = grid.layout(1,1)) fg <- placeGrob(fg, g1, row = 1, col = 1) grid.draw(fg) Error in UseMethod("d...
2012 Mar 16
1
ggmap crash
...iteLat), colour='red', data = sites) *** caught segfault *** address 0x196188000, cause 'memory not mapped' Traceback: 1: grid.Call.graphics(L_raster, x$raster, x$x, x$y, x$width, x$height, resolveHJust(x$just, x$hjust), resolveVJust(x$just, x$vjust), x$interpolate) 2: drawDetails.rastergrob(x, recording = FALSE) 3: drawDetails(x, recording = FALSE) 4: drawGrob(x) 5: recordGraphics(drawGrob(x), list(x = x), getNamespace("grid")) 6: grid.draw.grob(x$children[[i]], recording = FALSE) 7: grid.draw(x$children[[i]], recording = FALSE) 8: drawGTree(x) 9: recordGr...
2010 Dec 07
2
tableGrob and properties of a cell
Hello there, could you please help to modify gpar() properties of a cell inside tableGrob() output. In the following example I want to have different color for one out of 4 cells require(gridExtra) z<-matrix(1:4,2,2) grid.draw(tableGrob(z)) The only way I found for now how to do it is to do something like this downViewport(current.vpTree()$children[[1]]$children[[6]]$name)
2005 Apr 18
1
R-2.1.0 is released
...frame. o For Windows and readline-based history, the saved file size is re-read from R_HISTSIZE immediately before saving. o Collected warnings during start-up are now printed before the initial prompt rather than after the first command. o Changes to package 'grid': - preDrawDetails(), drawDetails(), and postDrawDetails() methods are now recorded on the graphics engine display list. This means that calculations within these methods are now run when a device is resized or when output is copied from one device to another. - Fixed bug in grid.text() when 'rot...
2005 Apr 18
1
R-2.1.0 is released
...frame. o For Windows and readline-based history, the saved file size is re-read from R_HISTSIZE immediately before saving. o Collected warnings during start-up are now printed before the initial prompt rather than after the first command. o Changes to package 'grid': - preDrawDetails(), drawDetails(), and postDrawDetails() methods are now recorded on the graphics engine display list. This means that calculations within these methods are now run when a device is resized or when output is copied from one device to another. - Fixed bug in grid.text() when 'rot...