[R] levelplot not adjusting colors

From: Bram Kuijper <a.l.w.kuijper_at_rug.nl>
Date: Thu 11 Jan 2007 - 14:16:50 GMT


Hi all,

I try to make a levelplot from the Trellis graphics package of count data given a certain x and y variable.

The problem is that I can adjust the colorkey colors, but the colors of the actual values in the plot will be unchanged if I change the colorkey.

e.g.
my_lvl_plot <- levelplot(my_z ~ my_x * my_y, colorkey = list(col=some_color_vector))

will result in a levelplot that draws new colors in the colorkey, but still draws the default colors in the plotting space.

anybody ideas how to change also the colors in the plotting space to the values depicted in the color key?

thanks,
Bram



R-help@stat.math.ethz.ch 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. Received on Fri Jan 12 01:46:43 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 12 Jan 2007 - 08:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.