search for: childrenvp

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

Did you mean: children
2009 Sep 19
1
matrix operations on grobs and grid units
...uot;,ii, "-c",jj,sep="")) gcells = placeGrob(gcells, text.grob.ij, row=jj, col=ii) label.ind <- label.ind + 1 } } gList( gcells) } # tests vp = viewport(name="cells") grid.draw(gTree(children=makeTableGrobs(e), childrenvp=vp)) grid.newpage() grid.draw(gTree(children=makeTableGrobs(e, 1, 4), childrenvp=vp)) grid.newpage() grid.draw(gTree(children=makeTableGrobs(e, 4, 1), childrenvp=vp)) This works as expected, however I would like some advice before going any further, - because this layout seems quite common, would...
2005 Oct 03
1
Grid: constructing a gTree with grobs that use named viewports from a vpTree
I'm trying to create a layout with named viewports that I can use for other functions. I create the viewport tree that I want, and a list of grobs with the viewports describing where they should go. library(grid) vp <- vpTree( viewport(layout=grid.layout(2,2), name="layout"), children=vpList( viewport(layout.pos.col = 1, layout.pos.row=1, name="tl"),
2009 Sep 27
0
puzzle with drawDetails for a class derived from a gTree
...out=grid.layout(1, 2)) ## viewports, one for each child cvp <- vpList(viewport(layout.pos.row=1, layout.pos.col=1, name="leftvp"), viewport(layout.pos.row=1, layout.pos.col=2, name="rightvp")) x <- gTree(right=right, left=left, col=col, childrenvp=cvp, edits=edits, name=name, gp=gp, vp=vp, cl="test") if(draw) grid.draw(x) invisible(x) } drawDetails.test <- function(x, recording=TRUE) { x <- applyEdits(x, x$edits) ## create the two grobs left <- make.test.left(x$left,...
2006 Jul 29
3
placing rectangle behind plot
I am trying to create a lattice plot and would like to later, i.e. after the plot is drawn, add a grey rectangle behind a portion of it. The following works except that the rectrangle is on top of and obscures a portion of the chart. I also tried adding col = "transparent" to the gpar list but that did not help -- I am on windows and perhaps the windows device does not support
2004 Apr 12
1
R 1.9.0 is release
...eturn value, which is a grob. This makes it more convenient to just work with grob objects without producing any graphical output (by using the *Grob() functions). + there is a gTree object (derived from grob), which is a grob that can have children. A gTree also has a "childrenvp" slot which is a viewport which is pushed and then "up"ed before the children are drawn; this allows the children of a gTree to place themselves somewhere in the viewports specified in the childrenvp by having a vpPath in their vp slot. + there is a gPath obje...
2004 Apr 12
1
R 1.9.0 is release
...eturn value, which is a grob. This makes it more convenient to just work with grob objects without producing any graphical output (by using the *Grob() functions). + there is a gTree object (derived from grob), which is a grob that can have children. A gTree also has a "childrenvp" slot which is a viewport which is pushed and then "up"ed before the children are drawn; this allows the children of a gTree to place themselves somewhere in the viewports specified in the childrenvp by having a vpPath in their vp slot. + there is a gPath obje...
2004 Oct 04
7
R 2.0.0 is released
...rob(). - New function grid.grab() which creates a gTree from the current display list (i.e., the current page of output can be converted into a single gTree object with all grobs on the current page as children of the gTree and all the viewports used in drawing the current page in the childrenvp slot of the gTree). - New "lineend", "linejoin", and "linemitre" gpar()s: line end can be "round", "butt", or "square". line join can be "round", "mitre", or "bevel". line mitre can be any numbe...
2004 Oct 04
7
R 2.0.0 is released
...rob(). - New function grid.grab() which creates a gTree from the current display list (i.e., the current page of output can be converted into a single gTree object with all grobs on the current page as children of the gTree and all the viewports used in drawing the current page in the childrenvp slot of the gTree). - New "lineend", "linejoin", and "linemitre" gpar()s: line end can be "round", "butt", or "square". line join can be "round", "mitre", or "bevel". line mitre can be any numbe...