[R] bwplot with pch = "|"
Duncan Mackay
mackay at northnet.com.au
Mon Mar 1 06:19:52 CET 2010
Dear All
Below is a toy example of a modified standard bwplot.
require(lattice)
DF <-
data.frame(site = rep(1:5, each = 20),
height = rnorm(100))
bwplot(site ~ height,DF,
pch = "|",
par.settings = list(strip.background = list(col = "transparent"),
box.rectangle = list(col = "grey70",lty = 1),
box.umbrella = list(col = "grey70",lty = 1),
plot.symbol = list(alpha = 1,col = "grey70",cex = 1,pch = 20),
superpose.symbol = list(cex = rep(0.7, 7),col = "black", pch = rep(20,7)))
)
The help guide shows that pch = "|" is a special case.
This give me a line across the box which is what I want but how do I
make it thicker and red.
Regards
Duncan Mackay
Department of Agronomy and Soil Science
University of New England
ARMIDALE NSW 2351
Email home: mackay at northnet.com.au
More information about the R-help
mailing list