Displaying 20 results from an estimated 5000 matches similar to: "lattice levelplot axis ticks labels"
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
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
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
2012 Jan 06
1
Can levelplot colorkeys display a logarithmic scale evenly?
I'm using the {lattice} "levelplot" function to make a (more or less) 2-d 
histogram, and for the most part it's working fine with my data.  However, I 
can't get the color key to do what I need.  I can give it labels and custom 
cutoffs, but my cutoff lines (and hence my labels) aren't evenly spaced, instead 
they're more-or-less logarithmic, starting at
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
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
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),
               
2007 Oct 23
1
Custom colourkey spacing in levelplot, contourplot
Dear R gurus,
I have got stuck on how to customise the colorkey generated by
levelplot and contourplot, in the lattice package. This best
illustrated by an example:
library(lattice)
levelplot(volcano^20/1e45,at=c(0,0.001,0.01,0.1,1,10))
The reason for raising the volcano dataset to the 20th power is to
create a dataset with a large vertical exaggeration - this is similar
in nature to the data
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
2007 Jan 11
0
levelplot not adjusting colors
Hi all,
I try to make a levelplot from the Trellis graphics package of count 
data given a certain x and y variable.
The problem is that I can adjust the colorkey colors, but the colors of 
the actual values in the plot will be unchanged if I change the colorkey.
e.g.
my_lvl_plot <- levelplot(my_z ~ my_x * my_y, colorkey = 		 		 
list(col=some_color_vector))
will result in a levelplot that
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
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)
2012 May 29
1
lattice: add a marginal histogram on top of the colorkey of a levelplot?
Lattice experts:
Can you think of a way to produce a levelplot as below and then add a histogram of the z variable to the top margin of the plot that would sit on top of the color key?
x <- seq(pi/4, 5 * pi, length.out = 100)
y <- seq(pi/4, 5 * pi, length.out = 100)
r <- as.vector(sqrt(outer(x^2, y^2, "+")))
grid <- expand.grid(x=x, y=y)
grid$z <- cos(r^2) *
2014 Jun 10
2
Como controlar la altura de "colorkey" en levelplot de RatserVis
Hola miembros de la lista,
Estoy utilizando la función levelplot del paquete rasterVis para graficar
un raster y quiero controlar la altura de la referencia de color (colorkey)
del mapa, pero cuando cambio valores en el argumento "height" no parece
provocar cambios.  Alguna idea de por qué no está funcionando?
> cobertura
class       : RasterLayer
dimensions  : 780, 1296, 1010880 
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
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
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
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
2006 May 04
1
axis manipulation in levelplot
Hi:
I am trying to print multiple levelplots on a single page, and I am having
trouble manipulating individual axes on the plots.  I do not want a box
around the entire plot; on some plots I would like to show only the x-axis
(with line, tick marks and labels), and on other plots both x- and y-axes.
I am working from Windows XP with R 2.0.1, and my code is below. Right now,
the code results in a
2010 Jan 06
1
How do I upside down colorkey of levelplot?
Hi, all.
I made the main figure of levelplot upside down by transposing and
proper indexing; upper left corner is the biginning of matrix.
However, I can't figure out how I can upside down the vertical
colorkey right side of the main figure.
Any help will be greatly appreciated.
Minho