similar to: blank pdf output when called in a loop

Displaying 20 results from an estimated 1000 matches similar to: "blank pdf output when called in a loop"

2010 Jun 25
1
Trying to tile wireframe plots (using lattice package)
Hi all, I'm trying to print a number of wireframe plots (generated using the lattice package), and I want them to appear in a two-by two matrix along with some other (standard) plots. In other words I am trying to create a subplot or tiled plot that works for wireframes. I've tried the methods discussed in: http://tolstoy.newcastle.edu.au/R/e2/help/07/07/21238.html but while they work
2011 Feb 04
1
Suppress only Z axis tick marks and numbers in wireframe statement
I actually have several questions revolving around the generation of wireframe plots. The most pressing is that which is described by the subject line. I am trying to produce a figure with x, y, and z labels, but only tick marks on the x, and y axes. I have supplied sample code below substituting the volcano data set for my own such that you may run the code and see the results.
2009 Sep 05
8
Color index in image function
Dear All, I was looking for the color index in?image function,?such as from topo.colors(n) and etc. but still never found it. For instance, from the help menu. ########################################### # Volcano data visualized as matrix. Need to transpose and flip # matrix horizontally. image(t(volcano)[ncol(volcano):1,]) # A prettier display of the volcano x <- 10*(1:nrow(volcano)) y
2011 Mar 02
1
pb with Date format using filled.contour
Hi R-help community, Can anyone tell me why, while using : x <- seq(as.Date("2001-01-01"),as.Date("2001-01-01") + nrow(volcano)-1,1) y <- seq(1, ncol(volcano),1) when I plot the volcano matrix with that command : filled.contour(x,y,volcano) the graph has a Date format on X-axis, ok ... ... but when adding a contour plot to the filled contour, using this
2007 Feb 09
3
two perspective plots in in plot
Dear all, I would like to put two perspective plots into one plot. The help page for ?persp shows how one can add points and lines but not another perspective plot. data(volcano) z <- 2 * volcano # Exaggerate the relief x <- 10 * (1:nrow(z)) # 10 meter spacing (S to N) y <- 10 * (1:ncol(z)) # 10 meter spacing (E to W) ## Don't draw the grid lines : border = NA persp(x,
2010 Jan 04
2
Adding a distance scale to a plot?
Do you know what steps I need to take to add a scale to a plot? I'm pulling my example out of "An Introduction to R: Software for StatisticalModelling & Computing" (see the R code around Figure 76). I would like to add a scale to the image produced by the following code.? I would like to the scale to list the distance?and units:? data(volcano) x <- 10*(1:nrow(volcano)) y
2010 Apr 28
1
What is the best way to plots surfaces in 3 dimensions?
Hi R help, What is the best way to plots surfaces in 3 dimensions? I also have the following availability problem with "plot3d" and "scatterplot3d", and "wireframe": install.packages("scatterplot3d") Warning: unable to access index for repository http://cran.ch.r-project.org/bin/macosx/leopard/contrib/2.10 Warning message: In getDependencies(pkgs,
2012 Mar 28
4
Grafico en 3D
Buenas tardes, Podria por favor alguien ayudarme a descifrar por que no es posible ver la grafica 3D cuando se utiliza lattice? Ya se que algunas veces los duendes hacen de las suyas, pero no estoy seguro de que este sea el caso. He reiniciado R, cambiado a RStudio y utilizado XP, pero no pasa "nada". Mi sessionInfo() es: R version 2.14.0 Patched (2011-11-12 r57642) Platform:
2009 Mar 03
1
behavior of squishplot in TeachingDemos
Hi list, I wonder if anyone has had this experience with squishplot() in the TeachingDemos package. Taking the example from the ?image help page, library(TeachingDemos) x <- 10*(1:nrow(volcano)) y <- 10*(1:ncol(volcano)) layout(matrix(c(1,2,3,4),ncol=2,byrow=TRUE),height=c(2,1)) ## 1st plot op <- squishplot(range(x),range(y),1) image(x, y, volcano, col = terrain.colors(100)) par(op)
2009 Feb 06
2
undesired grid in ps/eps outputs generated by filled.contour or image
Hi! Whenever I save a graphic in ps/eps format generated by filled.contour or image, an undesired grid is added to it (not visible on the X11 screen). For example: postscript("volcano.eps") filled.contour(volcano,col=gray(seq(0,1,,50)),levels=seq(min(volcano),max(volcano),,50)) dev.off() Any ideia how to eliminate this grid? Thanks, Rachel [[alternative HTML version deleted]]
2004 Jun 07
3
Aggregate rows to see the number of occurences
Hi, I have a set of data like the following: [,1] [,2] [1,] 10 2 [2,] 7 0 [3,] 1 0 [4,] 1 0 [5,] 15 0 [6,] 17 4 [7,] 4 0 [8,] 19 8 [9,] 10 2 [10,] 19 5 I'd like to aggregate it in order to obtain the frequency (the number of occurences) for each couple of values (e.g.: (10,2) appears twice, (7,0) appears once). Something cool
2011 Jun 24
4
(no subject)
hi dear R crew. may i request the script for volcano plot. if able, pls include any tips about volcano plot. thank you. [[alternative HTML version deleted]]
2013 Apr 12
1
support for POSIXct classes in image.default axes
Hello, I would like to suggest the following change to image.default in src\library\graphics\R\image.R: 98c98 < plot(NA, NA, xlim = xlim, ylim = ylim, type = "n", xaxs = xaxs, --- > plot(x[1], y[1], xlim = xlim, ylim = ylim, type = "n", xaxs = xaxs, This provides all the support of axis.POSIXt that plot.default gives, currently the default new plot in
2004 Jun 03
1
Problem with par("usr")
Hi, I'm trying to use the "usr" argument but I see no effect of this option on my plots. For example: > par(usr=c(0,4,0,4)) > plot(1,1) This plots one point fine, but the coordinates of the plotting region are not those that I specified using par()... I can check this with > par("usr") [1] 0.568 1.432 0.568 1.432 What can I change in order to have this
2013 Sep 22
2
colores
Como usas la función image puedes consultar la ayuda ?image o help(image) y encontrarás el siguiente ejemplo donde se usa un diferente color Palette (mencionada por pepeceb en su respuesta). x <- 10*(1:nrow(volcano)) y <- 10*(1:ncol(volcano)) image(x, y, volcano, col = terrain.colors(100), axes = FALSE) # O puedes usar directamente el número para indicar el color image(x, y, volcano, col =
2006 Sep 11
3
wireplot margins and additional z-axis
Dear R experts, it would be very kind if you could help me with two wireplot problems. First, when I make a wireplot and transform it into an .eps using the postscript function the eps-file leaves always a lot of space below the plot, as if it would leave space for a legend or something like that. How can i get the plot into the bottom corner without the space below? The space is not there when
2001 Feb 12
1
3d plots?
Hi all I'm trying to create a three-dimensional wireframe-type plot, much like the screenshot shown at http://www.r-project.org/screenshots/volcano-persp.jpg In my case, I'm trying to show a density estimate of two-variable system, using the GenKern package. I've used the image() and contour() to create a nice shaded plot, but I've found a 3d plot is often easier for the
2003 Nov 26
1
Spearman correlation and missing observations
Hi, I am using R 1.8.1 on WinXP. I encounter a problem when trying to compute a Spearman correlation under certain conditions (at least I think there is a problem, but maybe this is the normal behavior). > X<-array(0,c(20,2)) > > X[,1]<-c(runif(10),rep(NA,10)) > X[,2]<-c(runif(10),rep(NA,10)) > > Y<-X[1:10,] > >
2011 Nov 15
1
equal spacing of the polygons in levelplot key (lattice)
Given the example: R> (levs <- quantile(volcano,c(0,0.1,0.5,0.9,0.99,1))) 0% 10% 50% 90% 99% 100% 94 100 124 170 189 195 R> levelplot(volcano,at=levs) How can I make the key categorical with the size of the divisions equally spaced in the key? E.g., five equal size rectangles with labels at levs c(100,124,170,189,195)? Apologies if this is obvious. -A R> version
1997 Apr 17
2
R-alpha: R-0.50.b6: bug in graphics demo
The line contour(volcano, x, y, l, col = "yellow", lty = "solid", add = TRUE) needs to be changed to contour(x, y, volcano, col = "yellow", lty = "solid", add = TRUE) A patch is appended below. -k *** demos/graphics/graphics.orig Thu Apr 17 11:02:39 1997 --- demos/graphics/graphics Thu Apr 17 11:03:08 1997 *************** plot(numeric(0), numeric(0),