search for: gridbase

Displaying 20 results from an estimated 77 matches for "gridbase".

2006 Jun 13
2
Updating R on an old Linux installation (was: Where is package gridBase?)
I am running R 2.2.1 on a University-supported linux installation based on Redhat EL3. I am sorry that it did not occur to me to mention this before; I updated R very recently, with the most recent version available for EL3 at http://cran.cnr.berkeley.edu/bin/linux/redhat/el3/. Looking at the gridBase documentation, I find that 2.2.1 is not in fact the most recent version. I have now spent hours trying to install 2.3. No available binary rpms seem to work. If I try the source code, configure crashes with a complaint that I do not have X, which is false (see below). Do I need a new version of...
2009 Mar 20
1
Howto Supress Extra Blank Page in gridBase
Dear all, I have a simple plot using "gridBase" like this. The problem occurs whenever I execute this code there is always a blank page created before the actual plot. How can we disable that blank page? I am using: R version 2.7.2 (2008-08-25) and gridBase version: 0.4-3 __ BEGIN__ library(grid) library(gridBase) opar <- par(no.re...
2004 Sep 23
1
Gridbase basic question
All, I have a simple plot(x,y) and I would like to then insert rectangles of some length (in native coordinates) and height fixed to 0.5 in native coordinates. I can't quite get the code right to do this. Can anyone give me a quick example of how to do this? I looked the gridBase index and the tutorial (from R-news?) but just haven't gotten it down yet. > plot(1:10,1:10) > par(new=T);vps <- baseViewports() > pushViewport(vps$inner,vps$figure,vps$plot) viewport[GRID.VP.28] > pushViewport(viewport(x=unit(1,"native"),y=unit(2,"native&qu...
2008 Sep 20
0
gridBase and layout
Dear list, I have produced a fairly intricate plot arrangement for use in a publication using layout() and gridBase, and out of curiosity I'd like to learn whether a more elegant and robust solution could be obtained with grid to avoid the layout() function. > library(gridBase) > x <- seq(-pi, pi, length=10) > y <- cos(x) > > par(mar = c(0, 0, 0, 0), pty = "m", mgp = c(1....
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...
2011 Apr 28
2
gridBase Base Plot Positioning
Hello, I'm trying to follow the documentation of how to use gridBase, and I've reached the minimal code example below as my best effort. Can someone explain how to keep the column of boxplots on the same page as the rectangles (even though I've tried new = TRUE) ? Also, would it be hard / possible to match up the middle of each boxplot to the middle of each...
2005 May 31
2
Problem going back to a viewport with gridBase
...t 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 plots to them so the solution needs to be sufficiently general that I can so generalize it. Thanks. library(gridBase) opar <- par(no.readonly = TRUE) grid.newpage() # two columns, one row unit. <- unit(c(1,1), c("null","null")) pushViewport(viewport(layout = grid.layout(1, 2, widths = unit.))) # draw green graph in first column (viewport A) pushViewport(viewport(layout.pos.col = 1, na...
2005 May 31
2
Problem going back to a viewport with gridBase
...t 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 plots to them so the solution needs to be sufficiently general that I can so generalize it. Thanks. library(gridBase) opar <- par(no.readonly = TRUE) grid.newpage() # two columns, one row unit. <- unit(c(1,1), c("null","null")) pushViewport(viewport(layout = grid.layout(1, 2, widths = unit.))) # draw green graph in first column (viewport A) pushViewport(viewport(layout.pos.col = 1, na...
2008 Aug 08
2
gridBase and new.page() / grid.newpage()
Hello all, I'm trying to write a function using the gridBase package. I'd like to push several base subplots to a larger plot constructed with grid. However, I'm having trouble getting consistent results when running the function when the plotting window (quartz) is closed, when it is left open and the plot function is repeated to the same window, a...
2008 Dec 05
1
Trouble with gridBase and inset plots
Dear All, I ma having a trouble in generating a figure containing 3 insets with the gridBase package. I always get an error message of the kind: Error in gridPLT() : Figure region too small and/or viewport too large No matter which parameters I choose. The plots works nicely with two insets only, but when I try adding the third one, my troubles begin. I am probably doing something wrong...
2007 Oct 19
1
Using grid graphics (hexbin) in pairs() plot problem
...l() calls plot.hexbin(): library(hexbin) # Bioconductor mypanel <- function(x, ...){ hb <- hexbin(x) plot(hb) } The problem is that gplot.hexbin() is based on the grid-graphics, and each hexplot goes over my complete graphics device. I suspect that I can use the gridBase package to put the two together, but I am somehow lost. The gridBase documentation contains a sample which has a normal ("base") plot with two columns, and some code to use grid commands to paint rectangles. library(grid) library(gridBase) par(oma=rep(1, 4), mfrow=c(1,...
2004 Dec 14
2
drawing a rectangle through multiple plots
...;l") plot(1:10, rnorm(10), ylim = c(-4,4), type = "l") plot(1:10, rnorm(10), ylim = c(-4,4), type = "l") rect(2, -4, 3, 4) par(def.par) I want the rectangle to extend across the whole device. How do I get at those coordinates? Is this a case where I should be using grid or gridBase? Thanks.
2008 Oct 13
3
rotating points on a plot
Anybody know how to rotate shapes generated with the 'points' function? I'm trying to place points around a radial diagram such that the y-axis of individual shapes are oriented with the radii of the circle rather than the y-axis of the larger plot area. Perhaps something analogous to the 'srt' and 'crt' functions for text that appear under 'par'?
2008 Mar 20
4
little subplot in corner
...some legend (like legend(x="topright", inset=0.03, ...) #main plot plot(rnorm(100)) #give little density in corner plot(seq(-2,2,length=300),dnorm(seq(-2,2,length=300)),type="l") I don't want something like par(mfrow=c(1,2)) as this gives subplots of equal size. I saw that gridBase is very flexible, but could not find a suitable example. Thanks for help, Thomas
2010 Nov 03
3
R package BibTex entries: looking for a more general solution
...;Rpackages-R.2.11.1.bib") Converted 230 of 230 package citations to BibTex Results written to file Rpackages-R.2.11.1.bib Warning messages: 1: In citation(x) : no date field in DESCRIPTION file of package 'codetools' 2: In citation(x) : no date field in DESCRIPTION file of package 'gridBase' 3: In citation(x) : no date field in DESCRIPTION file of package 'iplots' > See: http://euclid.psych.yorku.ca/SCS/Private/Rbibs/Rpkg-test.pdf for the result of processing this .bib file with latex/bibtex using the jss.bst bibliography style I'm writing to R-Devel because the...
2003 Oct 19
0
Oceanographic lattice plots
...ng 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 package called gridBase which works with R 1.8.0 that does the job nicely. I've put the plot on a publicly accessible ftp site <ftp.niwa.co.nz/incoming/mcclatchie/misc/ocean.plot.pdf> Here is the code used to generate the plot that Paul developed with my collaboration. ---------------------------------------...
2003 Dec 19
1
Different scales for keys in lattice levelplots
...t z = f(x, y) for multiple z variables. x and y values are the same across plots, but units for z are different and therefore I need to create a custom scale for each plot's key. It follows that I need to place each plot's key inside that plot's box. Should I use filled.contour() and gridBase instead? Thanks, Scott Waichler Pacific Northwest National Laboratory scott.waichler at pnl.gov http://hydrology.pnl.gov
2004 Oct 18
2
答复: 答复: R plot problems
...so that it > >can show all. But I don't know how to write this option or function . > > I'm not sure if I've understood your question correctly. But if you use > base graphics and want e.g. rotated labels, you'll achive this rather > easily using functions in the gridBase package. (Take a look at the package > vignette for an example that'll get you started.) > > Henric > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the postin...
2008 Sep 01
1
npc to native coordinates for xyplot
...nd grid.text(), they are offset using the default npc coordinates. Nothing happens when I pass the parameter default.units="native" to grid.circle, as suggested in this post:http://tolstoy.newcastle.edu.au/R/e4/help/08/03/5534.html. I also tried replicating the code in Paul Murrell's GridBase documentation, but to no avail: xyplot(y ~ x, groups=pt, data=dt) vps <- baseViewports() pushViewport(vps$inner, vps$figure, vps$plot) grid.circle(x=unit(-6,"native"), y=unit(-8,"native"), r=1) popViewport(3) Is there some other parameter or command that will convert the gr...
2007 Aug 28
2
Limiting size of pairs plots
Dear R-users, I would like to add a legend at the bottom of pairs plots (it's my first use of this function). With the plot function, I usually add some additional space at the bottom when I define the size of the graphical device (using mar); grid functions then allows me to draw my legend as I want. Unfortunatley, this technique does not seem to work with the pairs function as the