An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/r-help/attachments/20030604/33887f05/attachment.pl
Strip location and grid colour in Lattice
3 messages · Mulholland, Tom, Deepayan Sarkar, Tom Mulholland
On Wednesday 04 June 2003 04:26, Mulholland, Tom wrote:
I am probably missing something quite obvious, but any help would be appreciated. I am continually getting people misreading the lattice plots because they are expecting the strip (with the factor names in them) to be below the graph. Is there anyway of achieving this.
No. (At least none that is easy.)
Secondly, from a more personal note I find the grid formed by the axes to be a bit overpowering and would like to make it a little less bold by changing it to a grey of some kind. I can't see that the scales options have anythig in their that I could use. I can change the label colours and tick marks, but then I draw a blank.
It's not very clear to me what you want. If you want to change the colors, that should be doable. What exactly is the problem ? Do you want something more ?
While I'm on a role, I find that quite often I have to resort to the at and label sections of the scales function to get my tickmarks looking OK. This seems to be when am producing line graphs with one of the scales being a date (POSIXct). What is not clear to me is if all POSIXct variables are the same. The xyplot doco indicates that the at co-ordinates should be native co-ordinates. Can anyone point me to where in the voluminous documentation one looks to understand what this means. I have found that on some occasions the co-ordinates are in seconds (as the documentation on POSIXct states, but this afternoon I found that the values seemed to be in years. Which wasn't a problem other than I wish I could understand what was actually happening.
AFAIK, all POSIXct variables should be the 'same', as you say, being the number of seconds since the epoch. They have a particular class, but otherwise they are no different from numeric variables. Older versions of lattice treated these as numeric (which usually were very very large values), and hence put horrible labels. Recent versions try to do something decent when they identify POSIXct variables, but they are not very good at it. So you _will_ need to adjust them by hand most of the time. Hopefully things would improve in the future. I'm not familiar enough with these things to understand your year problem, though. Deepayan
I'm not sure of the correct term, but in essence it is the equivalent to the frame in the basic plots or might be described as the bounding box to each plot. That is when you look at 16 plots on a page these frames (boxes) make up a grid. -----Original Message-----
Secondly, from a more personal note I find the grid formed by the axes to be a bit overpowering and would like to make it a little less bold by changing it to a grey of some kind. I can't see that the scales options have anythig in their that I could use. I can change the label colours and tick marks, but then I draw a blank.
It's not very clear to me what you want. If you want to change the colors, that should be doable. What exactly is the problem ? Do you want something more ? Deepayan I think the "between = list(x = 1, y = 1) etc" will work nicely as an immediate solution. Thank you Andy and Deepayan for your help on the first question. I think Deepyan's answer to my ramble about POSIXct in lattice gives me all the information I required. There's probably as much finger (brain) trouble on my part, as there is anything else. ______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help