similar to: axis manipulation in levelplot

Displaying 20 results from an estimated 6000 matches similar to: "axis manipulation in levelplot"

2005 Feb 15
1
lattice multiple plots per page
Dear R-sters, I was wondering if anyone has encountered the following issues. I've figured out how to get multiple levelplots [library(lattice)] on a single plot. However, when I add text (adding axis labels for the entire four panel plot) the text is missing when I insert the *.eps file I've created into my LaTeX document (via MikTeX-WinEdt). And, I've just upgraded to R
2011 Apr 06
2
Layout within levelplot from the lattice package
Hi, I'm a novice with levelplot and need some assistance! Basically, I want a window which contains 6 levelplots of equal size presented in 3 columns and 2 rows. I've tried to approach it two ways. The first way leads to this question: Is there any way to concatenate levelplots from a factor vertically as opposed to horizontally? I'd like to pair the levelplots by factor.2 on
2010 Mar 25
4
3 levelplots and 1 colorbar
I want to create a simple plot containing three levelplots with one colorbar. I used the "Three levelplots" code below, but the third levelplot is drawn smaller than the first two. However, if I try the "Two levelplots" code below it works well. Can anybody tell me how could I draw three levelplots (of the same size) with one colorbar. Thanks in advance, Joaquin ### Three
2003 Sep 12
1
levelplot
Dear helpers, I have strange results with levelplot: The following lines of code produce a figure with a strange gray horizontal line. Changing n to 9 the line vanishes almost - it stays in the colorbar. Any ideas? The pixel geometry of the lower half of the figure is wrong? ############################## n<-8 xyz<-expand.grid(x=seq(1,n),y=seq(1,n)) z<-matrix(0,n,n)
2004 Apr 27
1
helps on levelplot
I'm a new user of levelplot, and are not familiar with the terminology very well. Is the bar alongside the levelplot indicating color or shade call "colorkey"? I have to adjust the size of its label, but couldn't make it so far. This is how I did: levelplot(z~x*y, grid, at=seq(0,1,by=0.1), colorkey=list(labels=list(cex=2))) But I got error message "Error in
2008 Jun 23
1
levelplot question
Dear all; I have a data set with 3 groups and 2 response variables, say z1 and z2, and I would like to create a single plot (using the levelplot function) showing on the first row the leveplots for z1 for each group and on the second row levelplots for z2 for the same groups. I tried plot.trellis using the split option and it's OK but what I would like to achieve is something similar to what
2012 Apr 01
0
lattice levelplot axis ticks labels
Hello, I've searched for help a lot and think I am close, but an still not able to place ticks and labels how I'd like in lattice's levelplot. I've come up with general reproducible code that gives the same problem as I'm having with real data: heat <- array(1:24,c(3,8)) require (lattice) ##basically I want a graph like this. depth y axis doesn't have ticks and
2011 Oct 09
2
Multiple levelplot with title
Hi all, I'm new to R and to the mailing list, so please bear with me :-) I would like to create multiple levelplots on the same chart with a nice main title with something like this: print(levelplot(matrix(c(1,2,3,4), 2, 2)), split=c(1, 1, 2, 1)) print(levelplot(matrix(c(1,2,3,4), 2, 2)), split=c(2, 1, 2, 1), newpage=FALSE) I found a trick: mtext("Test", outer
2012 Aug 26
1
Multiple lattice levelplots from matrices
Dear R-users, My goal is to construct a levelplot (from the lattice package) with 4 or more individual plots sharing the same colorkey. While this appears to be relatively simple using functions, I haven't been able to find a solution using data matrices. An example of a working levelplot with just one matrix: d <- replicate(10,rnorm(10)) levelplot(d) I have found partial solutions using
2007 Jun 27
1
levelplot in lattice
Hi, I'm new to lattice. So please kindly be patient with me. I'm trying to arrange groups of levelplots into 3 rows as follows: Row1: Probabilities as functions of x and y, and conditioned on an event factor vector factor("a","b","c") Row2: Number of days as functions of x and y, and conditioned on, again the same event
2007 Mar 26
1
using alpha transparency for lines in levelplot
Hello, I'm having trouble with using the alpha channel for transparency with lines with lattice levelplots. If I use transparency via the alpha argument to rgb to overplot lines on levelplot the transparent colour affects all of the region colours in the plot. Can anyone explain why the difference in region colours? #### Warning: this code attempts to create PDF files in working directory
2006 Mar 31
1
Reduce/eliminate console printing time?
Hi: I have been writing some functions in R that are about 500-1000 lines long, and when I copy and paste the code into the R console, it takes about 20-30 seconds for R to ?print? and run the code at the console command line (and this is just for function definition - R isn't actually executing any commands). If I minimize the R console so that it shows only one line at a time, screen
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
2012 Jun 16
2
aligning axis labels in a colorkey from levelplot
R does a great job with the fine details regarding plots. e.g in the following: library(lattice) y <- -4:4/10 xyplot(y~1, las=1) the y axis is labelled with numbers -0.4, -0.2, 0.0, 0.2, 0.4 with the numbers aligned on the decimal point. How do I get the same behaviour in the colorkey of a levelplot? e.g. levelplot(matrix(y,3,3)) the numbers in the colorkey seem left-aligned, and
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
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
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
2008 May 11
1
positioning of color key in levelplot
Is there a way of positioning the color key in levelplot when the axes are on a categorical (rather than numerical) scale? I've put some sample code below. I need to add a secondary y axis to the right side of my plot but then the labels interfere with the color key (which is currently on the right side). Is there a way to shift the color key over a bit more to the right? I've tried
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)
2010 Sep 25
1
margin control in lattice package
Hi all, I am difficulty with simple layout of plots in the lattice package I have created a series of levelplots and would like to plot them to a single device, but need to reduce the margin areas. This is easily accomplished with par(oma) and par(mar) in the base graphics package but I am having problems finding the equivalent features in the lattice package. Ideally, I would like to reduce