Displaying 20 results from an estimated 2000 matches similar to: "showing values in levelplot or image"
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
2003 Aug 05
1
levelplot and points
Hi all,
I face the following problem.
I have two variables x,y. I have also calculated the surface z.
When I am drawing the surface with function >levelplot (in library lattice) everything is OK. I have the legend etc ...
Then I am trying to plot x,y on the same graph. So I am doing :
>points(x,y)
But, the points are not in the correct position. They are a little bit shifted to the
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
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
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
2003 Aug 21
2
levelplot behaviour for panel with constants
In the example:
x = rep(c(0,0,1,1),4)
y = rep(c(0,1,0,1),4)
z = c(1,0,1,0,0,0,1,1,0,1,0,0,1,1,1,1)
f = as.factor(c(rep("a",4),rep("b",4),rep("c",4),rep("d",4)))
levelplot(z~x+y|f,data.frame(x=x,y=y,z=z,f=f))
I noted that the last ("d") plot remains empty. I guess the
reason for this is that the values are constant (1), but I consider
it more
2009 May 08
2
display data ( text) on leveplot / Superpose panel
I am trying to display data ion top of colored rectangle on the same levelplot. While using superpose the shape and symbol for levelplot changes to small circle. I am unable to figure what exactly I am doing wrong... It may be straightforward solution... .I will appreciate help to fix this issue.
2009 Nov 05
1
How to load a specific variable from an RData file?
I'm wondering if there is any option available in load() such that I
can specify which variable I want to load from an RData file. I don't
see such option in the help.
2006 May 10
4
lattice package plots
I am using the lattice packge for its levelplot and contourplot. Is it
possible to adjust the line thickness of the 'box' and tickmarks in these
plots?
Thanks for the attention,
Matt Sundling
2004 Feb 25
2
levelplot add line
R folks,
I can't seem to find the instructions in the help files for the lattice
package that explain how to add lines, such as with lines() or ?, to a
levelplot. I'd be grateful if someone could point me in the proper direction.
Cheers,
Jeff
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jeff Jorgensen
Center for Limnology jcjorgensen at wisc.edu
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 =
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 May 21
3
Levelplot
Dear mailing list,
I am trying to find out, how do a levelplot without labels on the x- and y-axis.
The labels=FALSE does not work...can anyone help me?
m <- matrix(1:25, ncol=5)
levelplot(m, labels=F)
Regards,
Benedikt
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):
2005 Jan 26
2
postscript() and levelplot() in a for loop
Hi,
I like to produce a series of levelplot graphs in postscript file, so I put
the trunk of codes including postscript() and levelplot() in a for loop. The
codes work fine outside the loop, but only produce empty .ps file when being
put within the loop. Is it a problem associated with postscript() or
levelplot()? How to get around the problem? Many thanks!
Yan
[[alternative HTML
2010 Mar 31
2
lattice: how to add points to the plot generated by levelplot()?
I am using levelplot() function from pkg:lattice and I want to add some
points
to the plot generated by levelplot()
similarly as in basic R graphic sequence: plot(...); points(...),
but it does not work.
I was reading documentation for lattice, but so far without much
success.
I would very much appreciate some tips.
Best regards,
Ryszard
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
2013 Jan 20
2
Lattice levelplot- remove unused levels per panel
Hi,
I am using levelplot, and would like remove from each panel (condition) its
unused x levels.
e.g.
Remove from panel vs=1 the cyl level=8.
data(mtcars)
levelplot(mpg~factor(cyl)*factor(gear)|factor(vs))
Thanks for your help,
Ronny
--
View this message in context: http://r.789695.n4.nabble.com/Lattice-levelplot-remove-unused-levels-per-panel-tp4656087.html
Sent from the R help mailing
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
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)