Re: [R] levelplot

2012-12-30 Thread Peter Ehlers
On 2012-12-30 06:25, Janue Miret, Jofre wrote: I have two questions; Do you know how to take out axes in a levelplot? Me doesn't work axes = FALSE levelplot() is a lattice function, not base graphics; it has no 'axes' argument. Read about the 'scales' argument in ?xyplot and use levelplot(..

Re: [R] levelplot

2012-12-30 Thread Jeff Newmiller
Please read the Posting Guide mentioned at the bottom of any message on this list (and follow the recommendations there). You may find the suggestions offered here useful: http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example ---

[R] levelplot

2012-12-30 Thread Janue Miret, Jofre
I have two questions; Do you know how to take out axes in a levelplot? Me doesn't work axes = FALSE And I would like to fix the values range of colorkey or legend from my rainbow col.regions, dou you know how can I fix this values independent of values database? Thanks and happy new year!

[R] levelplot + cut() for custom color palette

2011-12-22 Thread Alex Reynolds
I have the following data as input, from which I would like to make a lattice levelplot: - x y level 1 m3134 m3134 1.000 2 m3134 m416B 0.4189057 3 m416B m3134 0.2696508 4 m3134 mA20 0.3322170 5 mA20 m3134 0.2454191 6 m3134mB 0.3176792 ...

Re: [R] levelplot blocks size

2010-12-28 Thread Greg Snow
@r- > project.org] On Behalf Of jonathan > Sent: Monday, December 27, 2010 7:00 PM > To: r-help@r-project.org > Subject: Re: [R] levelplot blocks size > > > Thanks for your help. > > Might you be able to explain in a little more detail how to use those > functions to

Re: [R] levelplot blocks size

2010-12-27 Thread jonathan
Thanks for your help. Might you be able to explain in a little more detail how to use those functions to solve this specific problem? I'm happy to put in the work myself and have looked up those functions but am new to R and still a little unsure about how I would go about using those functions

Re: [R] levelplot blocks size

2010-12-27 Thread Greg Snow
Look at the functions cut, findInterval, tapply, and aggregate. Sent from my iPod On Dec 26, 2010, at 4:34 PM, "jonathan" wrote: > > Thanks for your advice, but my data is not decimals, so I don't need to round > the values. Instead, what I need to really do is "group" the values into > large

Re: [R] levelplot blocks size

2010-12-26 Thread jonathan
Thanks for your advice, but my data is not decimals, so I don't need to round the values. Instead, what I need to really do is "group" the values into larger "blocks". My data looks sort of like this: xy z 00687 0164 0271 0355 0452 05

Re: [R] levelplot blocks size

2010-12-19 Thread Duncan Murdoch
On 19/12/2010 2:46 PM, jonathan wrote: Duncan, Thanks for the help. I'm new to R, so I'm not sure how to get R to round the values and "group" them into larger blocks. I have tried the following: xlim=seq(0,2000,100),ylim=seq(0,2000,100) just to see if it would work, but it doesn't... Do y

Re: [R] levelplot blocks size

2010-12-19 Thread jonathan
Duncan, Thanks for the help. I'm new to R, so I'm not sure how to get R to round the values and "group" them into larger blocks. I have tried the following: xlim=seq(0,2000,100),ylim=seq(0,2000,100) just to see if it would work, but it doesn't... Do you think you might be able to explain how

Re: [R] levelplot blocks size

2010-12-19 Thread Duncan Murdoch
On 19/12/2010 2:10 PM, jonathan wrote: Sorry to bump this up again, but I've been continuing to look for a solution to this including a look into stats.bin but I still can't find any solution to do this within R. See ?levelplot. The number of bins of x and y is equal to the number of unique

Re: [R] levelplot blocks size

2010-12-19 Thread jonathan
Sorry to bump this up again, but I've been continuing to look for a solution to this including a look into stats.bin but I still can't find any solution to do this within R. Any help would be much appreciated! Thanks, Jonathan -- View this message in context: http://r.789695.n4.nabble.com/lev

[R] levelplot blocks size

2010-12-15 Thread jonathan
Hi, I am trying to produce a levelplot using the following: library(lattice) df <- read.table("data", sep="\t", header=TRUE) gr = levelplot(df$z ~ df$x * df$y, xlim=0:1000,ylim=0:1000,aspect="iso",col.regions=heat.colors) print(gr) The produced result is: http://dl.dropbox.com/u/25473/bigplot.

Re: [R] levelplot and contour lines

2010-06-10 Thread Deepayan Sarkar
On Thu, Jun 10, 2010 at 9:30 PM, wrote: > Hello list, > > Is there a way to add contour lines to a levelplot at different breakpoints > than are used for the colors? For example: > > > library(lattice) > > # colors good but too many contours > levelplot(volcano, at=94:195, contour=TRUE) > > # I t

[R] levelplot and contour lines

2010-06-10 Thread rchandler
Hello list, Is there a way to add contour lines to a levelplot at different breakpoints than are used for the colors? For example: library(lattice) # colors good but too many contours levelplot(volcano, at=94:195, contour=TRUE) # I thought something like this might work levelplot(volcano,

Re: [R] Levelplot

2010-05-21 Thread Peter Ehlers
.@mmm.com Tel: (651) 733-6092 Fax: (651) 736-3122 From: To: Date: 05/21/2010 10:43 AM Subject: [R] Levelplot Sent by: 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:

Re: [R] Levelplot

2010-05-21 Thread apjaworski
) 736-3122 From: To: Date: 05/21/2010 10:43 AM Subject: [R] Levelplot Sent by: 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) Rega

Re: [R] Levelplot

2010-05-21 Thread Peter Ehlers
On 2010-05-21 8:57, zac...@lmb.uni-muenchen.de wrote: 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) 1. This is a function in the lattice

Re: [R] Levelplot

2010-05-21 Thread Francisco J. Zagmutt
This would do levelplot(m, xlab="", ylab="") F zac...@lmb.uni-muenchen.de wrote: 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,

[R] Levelplot

2010-05-21 Thread zacher
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 __ R-help@r-project.org mailin

[R] levelplot

2009-11-18 Thread wenjun zheng
Hi, R Users When I use the default package "lattice", I found a problem about adjusting the Figure Margin that can be changed by par(mai or mar) in traditional plots. So it's hard for me to add top and right axis. Any suggestions will be appreciated. -- Wenjun [[alternative HTML version d

Re: [R] Levelplot without margins

2009-10-04 Thread Deepayan Sarkar
On Mon, Sep 28, 2009 at 9:08 AM, Antje wrote: > I had a bit success with the following usage: > > my.padding <- list(layout.heights = list( >                        top.padding = 0, >                        main.key.padding = 0, >                        key.axis.padding = 0, >                    

Re: [R] Levelplot without margins

2009-09-28 Thread Antje
I had a bit success with the following usage: my.padding <- list(layout.heights = list( top.padding = 0, main.key.padding = 0, key.axis.padding = 0, axis.xlab.padding = 0, xlab.

Re: [R] Levelplot without margins

2009-09-28 Thread Antje
I had a bit success with the following usage: my.padding <- list(layout.heights = list( top.padding = 0, main.key.padding = 0, key.axis.padding = 0, axis.xlab.padding = 0, xlab.

[R] Levelplot without margins

2009-09-28 Thread Antje
Hello, I'm not very experienced with lattice and I was wondering whether I get get some hints from you how to create a pure heatmap (using levelplot), without any axis, title, legend, margin at all... I just want to see the coloured squares, nothing else. Any suggestions? Antje __

[R] levelplot in combination with xyplot

2009-05-22 Thread Eelke Folmer
With levelplot I would like to combine fitted values and "raw" values in one plot. The surface should be based on fitted values and on top of those I would like distinguisable points based on the raw data with a colorscheme the same as the surface. # raw data x1 = rep(1:10, times = 10) x2 = re

Re: [R] levelplot question

2009-05-07 Thread Deepayan Sarkar
ar...@gmail.com] >> Sent: Wednesday, May 06, 2009 6:35 PM >> To: Greg Snow >> Cc: Antje; r-h...@stat.math.ethz.ch >> Subject: Re: [R] levelplot question >> >> On Tue, May 5, 2009 at 8:58 AM, Greg Snow wrote: >> > The function that is doing the color a

Re: [R] levelplot question

2009-05-07 Thread Greg Snow
ay 06, 2009 6:35 PM > To: Greg Snow > Cc: Antje; r-h...@stat.math.ethz.ch > Subject: Re: [R] levelplot question > > On Tue, May 5, 2009 at 8:58 AM, Greg Snow wrote: > > The function that is doing the color assignments is level.colors in > the lattice package. > > Looking

Re: [R] levelplot question

2009-05-06 Thread Deepayan Sarkar
On Tue, May 5, 2009 at 8:58 AM, Greg Snow wrote: > The function that is doing the color assignments is level.colors in the > lattice package. > Looking at the code confirms that the number of colors should be 1 less than > the length > of the at variable (the documentation implies that it should

Re: [R] levelplot question

2009-05-06 Thread Deepayan Sarkar
On Tue, May 5, 2009 at 12:00 AM, Antje wrote: > Hi Greg and all the others, > > thanks for your answer. The color-vector has the same length like the > at-vector but the recycling cannot be the reason, because only values > slightly above my "threshold" doe not appear blue. > I cannot find a good

Re: [R] levelplot question

2009-05-05 Thread Greg Snow
> -Original Message- > From: Antje [mailto:niederlein-rs...@yahoo.de] > Sent: Tuesday, May 05, 2009 1:00 AM > To: Greg Snow; r-h...@stat.math.ethz.ch > Subject: Re: [R] levelplot question > > Hi Greg and all the others, > > thanks for your answer. The color-vector has th

Re: [R] levelplot question

2009-05-05 Thread Dieter Menne
Antje yahoo.de> writes: > thanks for your answer. The color-vector has the same length like the > at-vector but the recycling cannot be the reason, because only values > slightly above my "threshold" doe not appear blue. > I cannot find a good explanation of which colors are assigned to which

Re: [R] levelplot question

2009-05-05 Thread Antje
Hi Greg and all the others, thanks for your answer. The color-vector has the same length like the at-vector but the recycling cannot be the reason, because only values slightly above my "threshold" doe not appear blue. I cannot find a good explanation of which colors are assigned to which value

Re: [R] levelplot question

2009-05-04 Thread Dieter Menne
Antje yahoo.de> writes: > I have a question concerning the behaviour of the colouring with levelplot. > > If I give the parameters "at" and "col.regions" like this: > > at <- c(1,2,3,4,5,6) > col.regions <- c("blue","blue","blue","yellow","yellow","yellow") > > Which color would have the value

[R] levelplot question

2009-05-04 Thread Antje
@Dieter: > You implicitly expect round(). > Your question implies that you may also susceptible to the problem of > R FAQ 7.31, "Why doesn't R think these numbers are equal?" No, I guess, you misunderstood my question. These vectors (at and col.regions) are given to levelplot together with som

[R] levelplot question

2009-05-04 Thread Antje
Hi there, I have a question concerning the behaviour of the colouring with levelplot. (I hope, I manage to explain) If I give the parameters "at" and "col.regions" like this: at <- c(1,2,3,4,5,6) col.regions <- c("blue","blue","blue","yellow","yellow","yellow") Which color would have the val

Re: [R] levelplot help needed

2009-02-27 Thread David Winsemius
Try using the alternating=FALSE option. -- David Winsemius On Feb 27, 2009, at 12:07 PM, Sundar Dorai-Raj wrote: To reorder the y-labels, simply reorder the factor levels: df <- data.frame(x_label = factor(x_label), y_label = factor(y_label, rev(y_label)), va

Re: [R] levelplot help needed

2009-02-27 Thread Sundar Dorai-Raj
To reorder the y-labels, simply reorder the factor levels: df <- data.frame(x_label = factor(x_label), y_label = factor(y_label, rev(y_label)), values = as.vector(my.data)) Not sure about putting the strips at the bottom. A quick scan of ?xyplot and ?strip.defaul

[R] levelplot help needed

2009-02-27 Thread Antje
Hi there, I'm looking for someone who can give me some hints how to make a nice levelplot. As an example, I have the following code: # create some example data # -- xl <- 4 yl <- 10 my.data <- sapply(1:xl, FUN = function(x) { rnorm( yl, mean = x) }) x_labe

Re: [R] Levelplot + Mosaic Plot hybrid?

2008-11-17 Thread Felix Andrews
Hi Kitty, You can scale the grid cells of a levelplot using the 'shrink' argument; see ?panel.levelplot As for your mosaic question, are you using the 'mosaicplot' function in the graphics package, or 'mosaic' in the vcd package, or something else? I suggest you provide a minimal example if you w

[R] Levelplot + Mosaic Plot hybrid?

2008-11-17 Thread Kitty Lee
Hi. I have built a levelplot with 3 variables, X, Y, and Z where X and Y are the two axes and Z represents the intensity (i.e. Z~X*Y). Now I want to adjust the size of the grid (like a mosaic plot) where the size of each grid is weighted by a variable, W. Just wonder how can I do that with lev

Re: [R] levelplot/heatmap question

2008-09-25 Thread Deepayan Sarkar
On 9/24/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hello! > I have data containing a large number of probabilities (about 60) of > nonzero coefficients to predict 10 different independent variables (in 10 > different BMA models). i've arranged these probabilities in a matrix like > so: > >

Re: [R] levelplot/heatmap question

2008-09-25 Thread Jim Lemon
[EMAIL PROTECTED] wrote: Hello! I have data containing a large number of probabilities (about 60) of nonzero coefficients to predict 10 different independent variables (in 10 different BMA models). i've arranged these probabilities in a matrix like so: (IV1)(IV2)(IV3) ... p(b0)

[R] levelplot/heatmap question

2008-09-24 Thread cerman
Hello! I have data containing a large number of probabilities (about 60) of nonzero coefficients to predict 10 different independent variables (in 10 different BMA models). i've arranged these probabilities in a matrix like so: (IV1)(IV2)(IV3) ... p(b0)p(b0)p(b0) p(b1)p

Re: [R] levelplot question

2008-06-23 Thread Pedro Mardones
thanks for the replies, however z1 (range 300-800) and z2 (range 0-50) are measured in different units and scales and the approach suggested by Bert and Deepayan creates a single colorkey (0-800) and some of the plots for z2 really don't show anything...is there any way to specify separate colorkey

Re: [R] levelplot question

2008-06-23 Thread Deepayan Sarkar
On 6/23/08, Pedro Mardones <[EMAIL PROTECTED]> wrote: > 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 seco

[R] levelplot question

2008-06-23 Thread Pedro Mardones
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 u

Re: [R] Levelplot of percentages always using 0 to 100 in the color scheme

2008-02-06 Thread Deepayan Sarkar
On 2/5/08, Kelvin <[EMAIL PROTECTED]> wrote: > I am trying to create levelplot's of cpu usage for systems. > print(levelplot(util.mean ~ x.hour * x.day, colorkey=T, cut=20, > scales=list(x=list(at=seq(0,96,length=25), > labels=ifelse(seq(0,24) %% 4 == 0, seq(0,24), ''))), # add > tick

[R] Levelplot of percentages always using 0 to 100 in the color scheme

2008-02-05 Thread Kelvin
I am trying to create levelplot's of cpu usage for systems. print(levelplot(util.mean ~ x.hour * x.day, colorkey=T, cut=20, scales=list(x=list(at=seq(0,96,length=25), labels=ifelse(seq(0,24) %% 4 == 0, seq(0,24), ''))), # add tick marks at the hour main="CPU Utilization During No

[R] levelplot border and dendrogram width

2007-12-16 Thread Paul Boutros
Hello, I'm trying to learn how to use lattice and levelplot in particular. There are three elements of customizing the plots I'm stuck with: a) Is there a way to put borders around each "cell" within a level-plot. I'm trying to do something like the colsep/rowsep/sepcolor/sepwidth paramet