lattice

R: how to change lattice (levelplot) color theme?

The default theme on my installation is something which maps the values to pink and cyan. How to change it for example to a gray scale theme? ...

Relationship between plotting packages in R

I am just starting out with R, and beginning to start producing charts. I am aware that there are at least three different plotting packages, the standard one, ggplot2 and lattice. Are these packages complementary, or do they cover much the same ground? If they are complementary, when do I use each? If they cover the same ground, whi...

Lattice representation of undirected graph

Under what circumstances can an undirected graph be represented by integer lattice points in Cartesian coordinates? Specifics: % Each point on the graph is mapped to (x,y) on the Cartesian grid where both x and y are integers. % Two points (x1,y1) and (x2,y2) on the Cartesian grid are "connected" if abs(x1-x2)<=1 and abs(y1-y2)<...

ggplot2 plotmatrix - changing text labels

I'm using the plotmatrix function in ggplot2 (ggplot2_0.8.8) and would like to override the column names displayed from my dataframe, e.g. plotmatrix(mtcars) + opts(strip.text.x = theme_text(size=20)) I can alter the properties of strip.text.x and strip.text.y with opts, but where can I change the text itself e.g. I would like "mpg" r...