similar to: lattice::panel.levelplot.raster too picky with unequal spacing

Displaying 20 results from an estimated 900 matches similar to: "lattice::panel.levelplot.raster too picky with unequal spacing"

2010 Apr 17
2
grid.cap() requires more time?
Dear all, I am puzzled by the following behavior of the new grid.cap() function, which appears to run out of time when capturing the output of a graphic. It works fine if I introduce a Sys.sleep(1) before executing more code, library(grid) quartz() grid.circle(gp=gpar(fill="black")) gg <- grid.cap() dev.new() grid.raster(gg) ## completely blank gg[gg!="white"] ## indeed
2013 Jul 20
2
Different x-axis scales using c() in latticeExtra
Hi, I would like to combine multiple xyplots into a single, multipanel display. Using R 3.0.1 in Ubuntu, I have used c() from latticeExtra to combine three plots, but the x-axis for two plots are on a log scale and the other is on a normal scale. I also have included equispace.log=FALSE to clean up the tick labels. However, when I try all of these, the x-axis scale of the first panel is used
2010 Aug 27
2
export 4D data as povray density files
Dear list, I wish to visualise some 4D data as a kind of colour / translucent cloud in 3D. I haven't seen such plots in R (but perhaps I missed a feature of rgl). The easiest option I found would be to export the data in povray's df3 (density file) format and visualise it with povray. The format specification baffles me a little, http://www.povray.org/documentation/view/3.6.1/374/ ;
2010 Mar 10
1
How to take out the content of character string
My question is represented by the following example. For example, I have a character string a, which is defined as AA="list(x=1, y=2)" I want to take out the content of AA by using some function, so that I can obtain the following expression automatically. list(x=1, y=2) Does anyone know how to do it? Thanks a lot, -- View this message in context:
2010 Dec 07
2
tableGrob and properties of a cell
Hello there, could you please help to modify gpar() properties of a cell inside tableGrob() output. In the following example I want to have different color for one out of 4 cells require(gridExtra) z<-matrix(1:4,2,2) grid.draw(tableGrob(z)) The only way I found for now how to do it is to do something like this downViewport(current.vpTree()$children[[1]]$children[[6]]$name)
2010 Jun 06
3
Creating pdf report
I'm looking for a way to create a pdf report that contains multiple graphs on one page as well as tables (ideally with some lines below categories etc.) . I have used the pdf(filename) followed by dev.off() to date but this prints one graph per page and does not seem to have functionality for tables. Thanks Sent from my BlackBerry? wireless device
2010 Feb 26
3
Plotting a Trivial Matrix
Dear All, Consider a matrix (N x N) where each entry is either zero or one (can hardly get any simpler). Now, I would like to plot it as a 'chessboard' where every matrix entry is a black (1) or white (0) square. Whatever tool I use to plot it, it should not try to interpolate the data at all. I found some online references http://www.phaget4.org/R/image_matrix.html but probably I can
2010 Mar 05
3
how to make this sequence: 1,2,3,4,5,4,3,2,1
I'm just beginning R, with book Using R for Introductory Statistics, and one of the early questions has me baffled. The question is, create the sequence: 1,2,3,4,5,4,3,2,1 using seq() and rep(). Now, as a programmer, I am punching myself to not be able to figure it out.. I mean, as simple as a for loop, but using seq, I am stumped. I would think c(1:5, 4:1) would be the brute force method
2015 Feb 26
2
como eliminar los nombres de las series en el grafico
Estimada comunidad, estoy haciendo un grafico con la funcion xYplot (paquete Hmisc) para agregar barras de error a los puntos del grafico. Pero pasa algo que no me gusta: aparece el nombre de las series en el grafico. Alguien sabe como puedo eliminarlas ? no quiero usar ggplot porque ya tengo hechos todos los graficos con lattice. Aqui el codigo que uso y los datos (estan separados por tab, no
2013 Jul 24
1
Query on R plot : Unequispaced label on x-axis
Dear R users, I want to plot a one variable continuous function f(x) vs x, x=[0,1]. Say for example: f(x)= x^2. Now, using the command plot(f~x) I will get a curve where the range of x-axis is [0,1] with all equispaced label. But, I need something else, and that is: my curve will be such that 80% on x-axis the range would be [0,0.5] and the rest 20% would contain [0.5,1]. Let me draw informally
2018 Nov 04
1
trivial typo in src/library/stats/man/ts.Rd
"vector[s]" should be plural in line 54 ... cheers Ben Bolker ---- Index: ts.Rd =================================================================== --- ts.Rd (revision 75540) +++ ts.Rd (working copy) @@ -54,7 +54,7 @@ } \details{ The function \code{ts} is used to create time-series objects. These - are vector or matrices with class of \code{"ts"} (and additional
2010 Aug 18
1
Automatically retrieve correct collation
Dear List, consider the following scenario: setClass(Class = "A", representation = representation(B = "B", C = "C")) setClass(Class = "B", representation = representation(C = "C")) setClass(Class = "C", representation = representation(something = "character")) Obviously, the collation for sourcing these defs needs to be: C,
2010 Nov 03
1
NFFT on a Zoo?
I have an irregular time series in a Zoo object, and I've been unable to find any way to do an FFT on it. More precisely, I'd like to do an NFFT (non-equispaced / non-uniform time FFT) on the data. The data is timestamped samples from a cheap self-logging accelerometer. The data is weakly regular, with the following characteristics: - short gaps every ~20ms - large gaps every ~200ms
2010 May 31
4
Fancy Page layout
Hi, Working on a report that is going to have a large number of graphs and summaries. We have 80 "groups" with 20 variables each. Ideally, I'd like to produce ONE page for each group. It would have two columns of 10 graphs and then the 5 number summary of the variables at the bottom. So, perhaps the top 2/3 of the page has the graphs and the bottom third has 20 rows of data
2014 Nov 06
2
diferentes escalas en el X de un grafico con varios paneles
Estimados, tengo el siguiente problema: Tengo que graficar la concentracion de un metabolito en algunas muestras contra la concentracion del solvente con que fue extraido. Las concentraciones varian desde cero (para un control) hasta varios miles de unidades de concentracion (miliMolar). Para que se puedan diferenciar los puntos en el eje X, se ha usado una escala logaritmica. Hasta ahi todo
2010 Feb 25
2
How to fill in a region with different patterns?
Hi to all, Here is a question which I cannot solve. Appreciate so much for any suggestions! I have a squared region which is irregularly divided into many rectangular patches. Each patch is associated with a value, and two patches possibly share a common value. I hope to fill in each patch a pattern according to its value. For instance, if a patch has value 1, then I fill in that patch
2010 Jul 17
1
Bug 14340 - Symbols() plots with wrongly scaled y-axis
Hello, I submitted this bug report to r-core and got a rejection saying I should post to r-help. This is my first time ever submitting a bug report, so forgive me if I'm using some wrong format. So, here's my bug report: Component: Graphics OS: Mac OS 10.5.8, X11 XQuartz 2.5.0 Summary: In the symbols function of the graphics package, scaling of the y-axis is wrong, causing symbols
2005 Nov 13
1
correlating irregular time series
I have some time stamped events that are supposed to be unrelated. I have plotted them and that assumption does not appear to be valid. http://metrak.com/tmp/sevents.png is a plot showing three sets of events over time. For the purpose of this exercise, the Y value is irrelevant. The series are not sampled at the same time and are not equispaced (just events in a log file). The plot is
2010 Aug 31
4
How to Adaptively Set Up the Coordinate Range of Multiple Graphs in One Figure
Hi, R-Helpers, I would like to ask about multiple graphs in one figure. I tried to execute the following codes. xlim <- c(1,100) ylim <- c(1,4) plot(NA, xlim=xlim, ylim=ylim) > x <- c(1:100) for(j in seq(1,10,by=1)) { y <- j*x^2+log(j) lines(x, y) } In the above codes, I had to arbitrarily set up the coordinate range of the figure in advance before
2009 Oct 19
1
Spatstat: xy binary data into mask type to use in owin(mask=)
Dear users, I am trying to export polygons from Arcmap into Spatstat to run some simulations using functions available in Spatstat package. One particular area to be exported is formed by a number of polygons defining the external boundaries of the area (as a groups of islands) and a number of polygons inside the previous ones, as ?holes? not to be considered as part of the area. I have