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 ---

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

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

Re: [R] Levelplot

2010-05-21 Thread Peter Ehlers
On 2010-05-21 11:36, apjawor...@mmm.com wrote: I am not sure if I am correct but I think the labels argument pertains only to the counterplot function. It's true that the 'labels' argument is only used in contourplot, not levelplot. Moreover, there is an example of the use of levelplot on the h

Re: [R] Levelplot

2010-05-21 Thread apjaworski
I am not sure if I am correct but I think the labels argument pertains only to the counterplot function. Cheers, Andy __ Andy Jaworski 518-1-01 Process Laboratory 3M Corporate Research Laboratory - E-mail: apjawor...@mmm.com Tel: (651) 733-6092 Fax: (651) 7

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,

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.

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

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

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

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)

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

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