Re: [R] Question regarding lattice::levelplot and distribution of colors

2014-07-07 Thread Duncan Mackay
rent colours for certain ranges Duncan From: Sunny Srivastava [mailto:research.b...@gmail.com] Sent: Monday, 7 July 2014 18:57 To: Duncan Mackay Cc: R Subject: Re: [R] Question regarding lattice::levelplot and distribution of colors I am sorry but I think I have been unclear. The prob

Re: [R] Question regarding lattice::levelplot and distribution of colors

2014-07-07 Thread Sunny Srivastava
= 0.5, >rot = 90), > y = list(cex = 0.5), > alternating = FALSE), > xlim = c(0, 50), > colorkey = list(labels = paste(seq(-0.2,0, 0.025)), >

Re: [R] Question regarding lattice::levelplot and distribution of colors

2014-07-06 Thread Sunny Srivastava
Hello David: Thanks for your response. I am not sure, but isn't an ordered categorical variable integer for all practical purposes? (R < L) Further, the problem persists if I change 'at' from seq(-0.3, 0.3, length = 20) to seq(-0.3, 0.3, length = 50; I think this argument is for the color key l

Re: [R] Question regarding lattice::levelplot and distribution of colors

2014-07-06 Thread Duncan Mackay
) Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mac...@northnet.com.au -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Sunny Srivastava Sent:

Re: [R] Question regarding lattice::levelplot and distribution of colors

2014-07-06 Thread David Winsemius
On Jul 6, 2014, at 4:35 PM, Sunny Srivastava wrote: > Hello R-helpers: > > I think there is some problem with my code, but I would like to seek you > help because I can't spot it. > > I have a data.frame defined as follows: > > testdf <- structure(list(yy = structure(c(1L, 1L, 1L, 1L, 1L, 1L,

[R] Question regarding lattice::levelplot and distribution of colors

2014-07-06 Thread Sunny Srivastava
Hello R-helpers: I think there is some problem with my code, but I would like to seek you help because I can't spot it. I have a data.frame defined as follows: testdf <- structure(list(yy = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L), .Label = c("R", "L"), class =