On 10/16/08, Paul Boutros <[EMAIL PROTECTED]> wrote: > Hello, > > I have encountered some unexpected behaviour with levelplot that may simply > be a misunderstanding on my part. > > If I create a levelplot from a matrix with named columns, some "padding" > space appears at the top and bottom of the heatmap. Here is an example, [...]
This is because the named columns get treated as a factor, and cause the corresponding axis annotation code to be triggered. This isn't easy to fix without major changes. A simple workaround is to change the padding for factors in the call to levelplot: levelplot(data, lattice.options = list(axis.padding = list(factor = 0.5))) It may make sense for this to happen by default; I'll check if that has any potential drawbacks. -Deepayan ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.