search for: viewports

Displaying 20 results from an estimated 651 matches for "viewports".

2003 Dec 30
0
grid's viewports
Hello! There is something wrong with nested viewports in grid package (I have tested it in R-1.8.0, may be it is different in other versions). Here is an simple example of a feature which seems strange to me: x11() rec<-T push.viewport(viewport(xscale=c(-10,10),yscale=c(-10,10),gp=gpar(col="magenta")),recording=rec) #Parent viewport...
2007 Dec 26
1
seekViewport error
Why does the seekViewport at the bottom give an error? > xyplot(Sepal.Length ~ Sepal.Width, iris, group = Species, col = 11:13, + auto.key = TRUE) > grid.ls(view = TRUE) ROOT GRID.rect.89 plot1.toplevel.vp plot1.xlab.vp plot1.xlab 1 plot1.ylab.vp plot1.ylab 1 plot1.strip.1.1.off.vp GRID.segments.90 1 plot1.strip.left.1.1.off.vp
2008 Jun 01
1
transforming output of grid.locator() to coordinates of a leaf viewport
Short form: How do I transform the output of grid.locator() (or grid.locator(unit='npc')) to the native (or npc) coordinates of a viewport other than the top-level viewport? Thanks in advance. -Ben Long form: I would like the user to be able to click anywhere on the R graphics window. I would then like to figure out which leaf viewport the user clicked in and compute the native
2008 Aug 06
1
grid layout scaling viewport width based solely on height
Hello all, I'm trying to write a function that produces a main plotting region with several square plots along the right side. Ideally the size of right side plots will scale only with the height of the entire plot, yet never overlap with another secondary plot. The following two snippets get close, however, as I resize the plot horizontally the right side plots (green squares) get smaller
2004 Apr 25
1
multipanel display of levelplots?
I cannot achieve a multipanel display of several levelplots. Here is part of my code. At first, create the layout: push.viewport(viewport(layout=grid.layout(1, 2))) Then for the left panel: push.viewport(viewport(layout.pos.col=1,layout.pos.row=1)) push.viewport(viewport(width=0.6, height=0.6)) levelplot(z~x*y, grid) pop.viewport() Similar code for the right panel. However, there is always
2004 Sep 07
1
gridBase and heatmap
I would like to use gridBase to place four separate heatmaps (actually, a stripped-down heatmap.2 from ght gregmisc package that contains only the "image" part) into four different viewports. I can get the placement correct, but I keep 'losing' the previous plot. Any suggestions? Here is some quick example code trying to put a heatmap into the left viewport and then put a second one into the upper right. Thanks in advance for insight.... Sean > pushViewport(view...
2008 Jan 15
1
navigating ggplot viewports
list(...) I can not get at the grid viewports in a ggplot2 plot. I know there is supposed to be a viewport called "panel_1_1" but downViewport() can't find it. Has the viewport been popped? I had a quick look at the functions involved (eg ggplot_plot) but there is no obvious problem there. > library(ggplot2) > qplot(1:10,...
2008 Aug 17
1
Making use of names of viewports (grid)
...;- grid.layout(nrow = 3, ncol = 4, widths = unit(rep(1, 4), rep("null", 4)), heights = unit(c(99, 1, 99), c("mm", "null", "mm"))) pushViewport(viewport(layout = vps)) for(k in 1:4){# label 4 viewports in top row cube.k <- ppaste("Cube", k) pushViewport(viewport(layout = vps, name = cube.k, layout.pos.row = 1, layout.pos.col = k)) grid.rect(gp = gpar(lty = "dashed", lwd = .1)) grid.text(cube.k, y = .9, gp =...
2009 Mar 31
1
viewport bug in 2.8.0?: Error: Cannot pop the top-level viewport (grid and graphics output mixed?)
...viewport(x=0,y=0,width=1, height=0.5, just=c(0,0))) par(new=TRUE,fig=gridFIG()) plot (X,Y,col='grey') Upon resize will display the above error. R will then become unstable and I have to terminate. This is in the windows version of R 2.8.0. Am I doing something wrong? I am using viewports as I am doing something more complex than the above in code with a number of additional viewports (In this case I could use layout or split.screen) regards Jonathan Shore ----------------------------------------- SAVE PAPER - THINK BEFORE YOU PRINT! This transmission has been issued by a me...
2007 Oct 24
1
Rotated viewports in Grid
Hi all, I'm trying to generate a plot containing a scatterplot, with marginal densityplots for x and y. However, when I try to generate a vertical densityplot, I get the message "warning: can't clip to rotated viewport", and nothing shows up. I'm probably misunderstanding how viewports are meant to be used, so if someone could give me a hint, I'd be most grateful. my system is R 2.5.0 (stuck, and can't upgrade for now) and windoms xp. many thanks in advance, Gustaf example: -------------------------- library(lattice) library(grid) x<-rnorm(20) y<-rnorm(20) graph....
2006 May 29
2
Feature Request: Viewport Switching Plugin
Hi, First of all, great job! :) I really like to organise my work on, former known "workspaces", now "viewports". I use currently use 9 so I have 3 for work, 3 for private applications and 3 for other projects. Using the viewports like this it happens to have 3 browser windows, 6 Document Viewers, 9 Terminals, 1 Evolution, 2 IDEs and >3 Gimp The number of Windows and the organisation on the diffe...
2007 Feb 02
2
Horizontally maximized window on last viewport
Hi, I posted this on the forum as well, but there were no responses to it. I now posting it here just in case anybody cares. Anyway, Compiz is a very nice program. Thanks for all the effort you put into making it. I am using the latest git version of compiz and it really works great for being an "unstable" version. Anyway, I noticed the following strange behavior and was wondering
2005 May 31
2
Problem going back to a viewport with gridBase
...aws the horizontal lines as if its relative to B's coordinates rather than restablishing A's coordinates. As a result the horizontal lines are drawn near the bottom of the graph instead of at the correct heights. Try running the code below to see what I mean. I have also tried to use baseViewports with this but did not have any success. How do I modify this example so that the horizontal red lines come out at the appropriate levels? Note that this is just an example and in the future I will want to have multiple viewports each with a base plot and add arbitrary additional line or point...
2005 May 31
2
Problem going back to a viewport with gridBase
...aws the horizontal lines as if its relative to B's coordinates rather than restablishing A's coordinates. As a result the horizontal lines are drawn near the bottom of the graph instead of at the correct heights. Try running the code below to see what I mean. I have also tried to use baseViewports with this but did not have any success. How do I modify this example so that the horizontal red lines come out at the appropriate levels? Note that this is just an example and in the future I will want to have multiple viewports each with a base plot and add arbitrary additional line or point...
2009 Jul 21
2
animated grid graphics
I need to make a fairly complex animated graphic and decided to use grid for it. A very simple example of what I need: ##============================================================================== library(grid) grid.newpage() pushViewport(plotViewport()) pushViewport(viewport(xscale = extendrange(c(0, 100)), yscale = extendrange(c(0, 100)))) grid.xaxis() grid.yaxis()
2003 Oct 19
0
Oceanographic lattice plots
System info: Red Hat 9.0 R Version 1.8.0 ESS 5.1.21 Emacs 21.2.1 ------------------- Hello I've been working with Paul Murrell here in New Zealand to develop plots of temperature and density profiles at 22 stations spanning a frontal zxone, and then overlaying the isothermal and mixed layer depths (similar to Kara et al. 2003 JGR Oceans 108(C3) pg. 24-5, figure 2). Paul Murrell has a
2006 May 21
1
print.trellis(..., draw.in=...)
A year ago I had posted this code https://stat.ethz.ch/pipermail/r-devel/2005-June/033508.html and the associated discussion was that there would be a print.trellis argument that could be used to eliminate the need for with.vpPath or with.viewport there. I assume that that is what draw.in= in print.trellis is for. When I try it I get an error. I did notice that ?print.trellis says draw.in=
2001 Sep 21
2
new versions of grid and lattice
...back and suggestions for corrections/improvements. Don't worry if you can't see your suggestion in the new version; it just means we haven't found time to try to implement it yet :) Paul Murrell Deepayan Sarkar ---snip--- Changes from grid_0.1 to grid_0.2: 1. Fixed bug in rotating viewports; this should be more reliable now (the rotation of viewports, not the bug!). 2. Added grid.line.to() and grid.move.to(). These allow drawing BETWEEN different coordinate systems. See example in inst/doc/demo3.ps. 3. Added some more demonstrations to the doc directory. 4. Added more tes...
2001 Sep 21
2
new versions of grid and lattice
...back and suggestions for corrections/improvements. Don't worry if you can't see your suggestion in the new version; it just means we haven't found time to try to implement it yet :) Paul Murrell Deepayan Sarkar ---snip--- Changes from grid_0.1 to grid_0.2: 1. Fixed bug in rotating viewports; this should be more reliable now (the rotation of viewports, not the bug!). 2. Added grid.line.to() and grid.move.to(). These allow drawing BETWEEN different coordinate systems. See example in inst/doc/demo3.ps. 3. Added some more demonstrations to the doc directory. 4. Added more tes...
2009 Jul 12
0
[PATCH 2/3] nv50: fix viewport transform
We need to invert the viewport translate/scale parameters when the state tracker thinks we have Y_0_TOP. If these cases, we have do to bypass mode by setting an identity viewport transform for x, z and inversion for y, or p.e. clear_with_quad won't work correctly. Clipping for xy in NDC space needs to be disabled then. --- src/gallium/drivers/nv50/nv50_context.h | 1 +