similar to: 'cuts' option in levelplot()

Displaying 20 results from an estimated 20000 matches similar to: "'cuts' option in levelplot()"

2006 Sep 13
1
forcing levelplot to use relative cuts (ie cuts for each panel)
Dear guRus, I'm having trouble producing a levelplot with relative cuts for each panel (my data has large differences in scales, so I want to use quantiles for each panel). My attempts to change the 'at' argument in panel.levelplot function have not met with success. Below is a toy example. xy <- expand.grid(x = 1:3, y = 1:3) aaa <- rbind(cbind(xy, z = 1:9, site =
2009 May 05
2
Lattice: use levelplot as panel for wireframe
Hi, I want to draw a figure similar to http://dsarkar.fhcrc.org/lattice/book/images/Figure_13_07_stdBW.png from http://lmdvr.r-forge.r-project.org/figures/figures.html (figure 13.7) . However instead of using a contour plot as a panel for the wireframe I want to use a levelplot. Can somebody help me with this? Thanks in advance for any help, Kind regards, Anton Bossenbroek
2003 Oct 28
1
'levelplot' with an option 'at'
Hi all, I encountered a difference between versions 1.6.1 and 1.7.0 when using levelplot with an option 'at'. Here are the specs of the two platforms used: > R.version _ platform sparc-sun-solaris2.8 arch sparc os solaris2.8 system sparc, solaris2.8 status major 1 minor 6.1 year 2002 month 11 day 01 language R > R.version _ platform
2011 Dec 22
1
levelplot + cut() for custom color palette
I have the following data as input, from which I would like to make a lattice levelplot: ----------------- x y level 1 m3134 m3134 1.0000000 2 m3134 m416B 0.4189057 3 m416B m3134 0.2696508 4 m3134 mA20 0.3322170 5 mA20 m3134 0.2454191 6 m3134 mB 0.3176792 ... ----------------- I transform the levels as follows, so that
2006 Feb 12
1
contour lines for levelplot
Hi, I would like to add contour lines to a (trellis/lattice-) levelplot. Sure, there is the "contour=TRUE" argument, but this uses "cuts=..." (which is usually chosen very high for my plots. I guess cuts=99 is the best you can do (?)) for plotting the contour lines. Furthermore, I do not like the numbering of the contour lines this way. Therefore, I tried to add a
2003 Aug 29
1
levelplot behaviour when "at" cuts the z range
Consider the following examples: library(lattice) x = c(1,1,2,2) y = c(1,2,1,2) z = 1:4 levelplot(z~x+y,at=c(.5, 1.5, 2.5, 3.5, 4.5)) # correct levelplot(z~x+y,at=c(.5, 1.5, 2.5)) # ? The second plot is clearly incorrect. However, I don't know what correct behaviour is: ignore everything above 2.5 and issue a warning? Reject at values that do not cover the data range, and issue an
2003 Jan 21
1
[R] proposal: lattice/levelplot: panel.catlevelplot
I suggest to add a panel function to levelplot (or perhaps to an other 3d lattice function) which is able to translate the z values into the size of the rectangles. It could be used to display categorical data. I append the proposed code and two examples: - panel.catlevelplot() - example1.catlevelplot.esoph() - example2.catlevelplot.esoph() Wolfram Fischer #------ CODE
2005 Apr 20
1
overlaying a contour line in a levelplot
Hello there, I am creating a series of images using levelplot but I also want to overlay a contour for a particular value as reference. Here is the levelplot command for the image: print(levelplot(d~x+y,data=t,cuts=20,scales=list(draw=F),xlab=NULL,ylab= NULL,col.regions=heat.colors(100)[100:1]),split=c(1,1,1,1),more=T) and then to add the contour plot (I only want a contour at level 5):
2008 Jan 31
1
decrease amount of ticks on y axis in lattice levelplot
Hi all, How can I decrease the number of ticks on the y-axis in a lattice levelplot()? I have as many ticks displayed on the y-axis as I have columns of data (1000 columns), how can I decrease this amount of ticks, while still properly displaying all the data? Note that I get my data from a matrix object, in which the z-values of the levelplot are the actual values in the matrix, whereas the
2005 Oct 11
1
problems with levelplot and contourplot
Hello, Using the following code i want to make a level or contourplot of some data that I produced library(grid);library(lattice); mydata <- read.table("avgee.dat"); mymat <- as.matrix(mydata); mymat <-t(mymat) vals<-as.vector(mymat); conc<-c(0.0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5); a<- c(0.01, 0.025, 0.05, 0.075, 0.1, 0.25, 0.5, 0.75, 1, 2.5,5.0, 7.5,10,
2004 Feb 11
1
levelplot colorkey
Dear R'ers, I've scanned available documentation and the web, but I can't seem to figure out where I've gone wrong in adding numbers to scale the colorkey in levelplot (Lattice package). For example, levelplot(z, contour=T, labels=T, cuts=10, region=T,... colorkey=list(T, space="bottom", at=seq(0,2000,length=20),
2008 Jan 05
1
mfrow for levelplot?
hello could anyone tell my, why I do not suceed with mfrow? par(mfrow=c(4,4)) for (i in 5:17){ levelplot(maxwater[,i]~maxwater$V1*maxwater$V2, col.regions=whiteblue(5), xlab="", cuts=4) } Thanks Marc --
2007 Oct 31
3
thicker axis in levelplot
Dear R-help community, I need to find out how to make the black axis line around my plot thicker in levelplot, I cannot find the correct command in ?levelplot or ?par - or if it is there I cannot get it to work - any help would be more that appreciated! Here's an example script - I would want the code for making the axis bordering the plot thicker: x<- seq(pi/4, 5*pi,length=100)
2004 Aug 31
1
add single contour line to levelplot
Hello, I want to add a single contour line to a levelplot but can't figure out how to do it 'on-the-fly'. When I include the last line in the code below, I get the following error: Error in NextMethod("[") : Argument "subscripts" is missing, with no default Any tips on how to fix this are greatly appreciated! Ian Jonsen
2009 May 02
1
lattice levelplot axis + custom annotations
How would I set the "scales" property of a lattice levelplot, so that I can add specific annotations at specific positions? For example, I have a 200 x 1000 element levelplot. Along the y-axis (along the 1000-element axis) I would like to add annotations on the left side of the levelplot at elements 120, 300, 500, and 805, which represent clusters of interest. Currently I have
2009 Nov 09
1
How to change color the default in levelplot() ?
Dear R communities May I seek your advices on how to change color the default in levelplot(), e.g. from the default of pink and light blue, to e.g. red and green ? The levelplot function has 1 of the arguments being panel (which is actually panel.levelplot), but I am not sure where the commands to alter the color. For example, I type: p1<-levelplot(my.mat,colorkey=FALSE), how could I
2006 Jun 13
2
levelplot and source() problems
I have been using levelplot but have had trouble calling it inside functions - something seems to go wrong when it's not called directly from the R command prompt. Simplest reproducible example: $ R --vanilla > library(lattice) > levelplot(matrix(1:4,2,2)) - This gives a nice plot in soothing pastel colors. Now, with a file lptest.r containing 2 lines: library(lattice)
2005 Mar 30
1
help with plotting a grid on levelplot
I'm trying to plot a grid over a levelplot print( levelplot( var1.pred~x+y, data=saw.pred, aspect=mapasp(saw.pred), col.regions=terrain.colors(80), main=main) ) using the data... > saw.pred x y var1.pred var1.var sort 1 5 5 3.3761200 256.3363 saw 2 15 5 3.3884142 499.5695 saw 3 25 5 3.5394769
2010 Mar 10
2
calling map() in xyplot()
Hi All, I'm trying to add a map on the following lattice plot, but not correctly... can anyone help please... R Code: require(lattice) us.map <- map(plot = FALSE, fill = TRUE) Depth <- equal.count(quakes$depth, number=8, overlap=.1) xyplot(lat ~ long | Depth, data = quakes, panel = function(...) { panel.polygon(us.map$x,us.map$y) panel.xyplot(...) } ) Any help would be
2007 Mar 25
1
controlling panel.width and panel.height in viewports
Dear all, I'm trying to get a series of lattice levelplots to appear in viewports in a particular way but struggling to exert fine control over their appearence. There are two conditions: (a) I only want the levelplot to appear (I don't want axes, colour key, etc) in the viewport and (b) I want the levelplot to expand to the maximum allowable space in the viewport while observing