search for: vplist

Displaying 14 results from an estimated 14 matches for "vplist".

Did you mean: vmlist
2010 Jun 07
1
Patch for legend.position={left,top,bottom} in ggplot2
...ly the parameters for the default position "right" were adjusted. Here's the patch: --- ggplot2-orig2 2010-06-07 13:14:35.000000000 +0200 +++ ggplot2 2010-06-07 15:22:33.000000000 +0200 @@ -7003,27 +7003,27 @@ ) } else if (position == "left") { viewports <- vpList( - vp("panels", 2, 3), - vp("legend_box", 2, 1), - vp("ylabel", 2, 2), - vp("xlabel", 3, 3), - vp("title", 1, 3) + vp("panels", 3, 4), + vp("legend_box", 3, 2), + vp("ylabel", 3,...
2009 Jun 24
1
parallel rotated strips with color gradient
...space="Lab")(200))) grid.rect(y=100:1/100, just="top", gp=gpar(col=NA, fill=colorRampPalette(c("lightgray", "white"), space="Lab")(200))) Or vpList(pushViewport(viewport(x = 0.638, y = 0.386, width=.62, height=0.006, angle=137.2))) grid.rect(y=100:1/100, just="top", gp=gpar(col=NA, fill=colorRampPalette(c("lightgray", "white"), space="Lab&...
2008 Aug 17
1
Making use of names of viewports (grid)
...me they're pushed. I had hoped I could get back to them to do what I've done in 'Cube5' using something like seekViewport(), but I see that won't work if the viewport has been popped. Reading through 'R Graphics' (the blue-toned book), I see there's such a thing as vpList which I could make while I'm in that for loop, but I don't see how I could do something like vpL <- c(vpL, cube.k) sort of thing that I could do with a vector. It's even less clear how I could make use of vpStack or vpTree. What is a smarter way to get back to those upper viewports...
2005 Oct 03
1
Grid: constructing a gTree with grobs that use named viewports from a vpTree
...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"), viewport(layout.pos.col = 2, layout.pos.row=2, name="br") ) ) grobs <- gList( rectGrob(vp="tl"), textGrob("Top left", vp="tl"), textGrob("Bottom right", vp="br&q...
2012 Apr 13
0
Reference Class import() behaviour
...t;<- gt nums <<- nums }, view = function() { print(vps) print(gt) print(nums) })) b.gen <- setRefClass("classB", contains = "classA") library(grid) my.vps <- vpTree(viewport(name = "parent"), vpList(viewport(name = "child"))) my.gtree <- gTree(name = "tree", children = gList(rectGrob(vp = "parent"), textGrob("test", vp = "child"))) a <- a.gen$new(vps = my.vps, gt = my.gtree, nums = 11:...
2009 Sep 27
0
puzzle with drawDetails for a class derived from a gTree
...on(right="right text", left="left text", col = "red", edits=NULL, draw=TRUE, name=NULL, gp=gpar()) { ## layout for the two children vp <- viewport(layout=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=...
2012 Jun 20
2
exact relative positioning of lattice plots
...r(fill="blue")), scales = list(axs = 'i', draw = FALSE), xlab = NULL, ylab = NULL, par.settings = theme.padding) # Push viewports and print plots grid.newpage() pushViewport( vpTree( viewport(layout = masterLayout, name="master"), vpList(vp1, vp2, vp3))) seekViewport("master") print(myPlot, draw.in = "vp1", panel.height = list(x=2, units="in")) print(myPlot, draw.in = "vp3", panel.height = list(x=3, units="in")) seekViewport("spacer") grid.rect() === Thank you for any he...
2011 Jul 01
1
beginner question - effective way to chart sleep habits
Hi - beginning R user question here - each day, over the course of several months, I've tracked the time I go to bed, the time I wake up, and my hours spent sleeping. What would be a good way to display this information? I think it would be ideal to show something resembling a bar and whisker graph for each day that would show the interval of hours spent asleep (or perhaps just a bar
2013 Jul 04
2
Modificar una función de un paquete
Estimados miembros de la lista. Estoy trabajando con la función mosaic del paquete vcd. Cómo puedo hacer para ver el contenido fe la función y modificar algunos de sus argumentos? Muchas gracias, Manuel -- *Manuel Spínola, Ph.D.* Instituto Internacional en Conservación y Manejo de Vida Silvestre Universidad Nacional Apartado 1350-3000 Heredia COSTA RICA mspinola@una.ac.cr
2013 Jul 04
1
Modificar una función de un paquete
...ro) > ## zerostack <<- c(zerostack, name[m]) > ## viewport(layout.pos.col = col[m], layout.pos.row = row[m], > ## name = remove_trailing_comma(name[m])**) > ## } > ## vpleaves <- structure(lapply(1:d, f), class = c("vpList", > "viewport")) > > ## vpTree(vproot, vpleaves) > ## } > > ## ## start spltting on top, creates viewport-tree > ## pushViewport(split(observed + .Machine$double.eps, > ## i = 1, name = paste(prefix, "cell:",...
2013 Jul 04
0
Modificar una función de un paquete
...e$double.eps && !zero) ## zerostack <<- c(zerostack, name[m]) ## viewport(layout.pos.col = col[m], layout.pos.row = row[m], ## name = remove_trailing_comma(name[m])) ## } ## vpleaves <- structure(lapply(1:d, f), class = c("vpList", "viewport")) ## vpTree(vproot, vpleaves) ## } ## ## start spltting on top, creates viewport-tree ## pushViewport(split(observed + .Machine$double.eps, ## i = 1, name = paste(prefix, "cell:", sep = ""), ##...
2013 Jul 06
0
Modificar una función de un paquete
...zerostack <<- c(zerostack, name[m]) > > ## viewport(layout.pos.col = col[m], layout.pos.row = row[m], > > ## name = remove_trailing_comma(name[m])**) > > ## } > > ## vpleaves <- structure(lapply(1:d, f), class = c("vpList", > > "viewport")) > > > > ## vpTree(vproot, vpleaves) > > ## } > > > > ## ## start spltting on top, creates viewport-tree > > ## pushViewport(split(observed + .Machine$double.eps, > > ## i = 1, name...
2004 Apr 12
1
R 1.9.0 is release
...ush/popViewport(). - Added upViewport(), downViewport(), and seekViewport() to allow creation and navigation of viewport tree (rather than just viewport stack). - Added id and id.lengths arguments to grid.polygon() to allow multiple polygons within single grid.polygon() call. - Added vpList(), vpStack(), vpTree(), and current.vpTree() to allow creation of viewport "bundles" that may be pushed at once (lists are pushed in parallel, stacks in series). current.vpTree() returns the current viewport tree. - Added vpPath() to allow specification of viewport path in...
2004 Apr 12
1
R 1.9.0 is release
...ush/popViewport(). - Added upViewport(), downViewport(), and seekViewport() to allow creation and navigation of viewport tree (rather than just viewport stack). - Added id and id.lengths arguments to grid.polygon() to allow multiple polygons within single grid.polygon() call. - Added vpList(), vpStack(), vpTree(), and current.vpTree() to allow creation of viewport "bundles" that may be pushed at once (lists are pushed in parallel, stacks in series). current.vpTree() returns the current viewport tree. - Added vpPath() to allow specification of viewport path in...