[R-sig-eco] Change the text in the strips of a Lattice plot

2011-06-24 Thread Manuel Spínola
Dear list members, I am trying the following plot in Lattice: library(lattice) library(datasets) data(CO2) xyplot(uptake ~ conc | Type * Treatment, groups = Plant, type = b, lty = rep(1:3, 4), strip = strip.custom( var.name = c(Type, Treatment ), strip.names = c(T,T), style = 3), data =

Re: [R-sig-eco] Change the text in the strips of a Lattice plot

2011-06-24 Thread Johannes Signer
Does that help you? library(lattice) library(datasets) data(CO2) levels(CO2$Type) - c(A, B) levels(CO2$Treatment) - c(no enfriado, enfriado) xyplot(uptake ~ conc | Type * Treatment, groups = Plant, type = b, lty = rep(1:3, 4), strip = strip.custom( var.name = c(Type, Treatment ), strip.names

Re: [R-sig-eco] Change the text in the strips of a Lattice plot

2011-06-24 Thread Manuel Spínola
That works perfect. Thank you very much Johannes. Best, Manuel 2011/6/24 Johannes Signer j.m.sig...@gmail.com Does that help you? library(lattice) library(datasets) data(CO2) levels(CO2$Type) - c(A, B) levels(CO2$Treatment) - c(no enfriado, enfriado) xyplot(uptake ~ conc | Type *