[R] Setting lattice boxplot's lines to black

From: Mario Alfonso Morales Rivera <malfonso_at_sinu.unicordoba.edu.co>
Date: Sat 02 Jul 2005 - 06:33:12 EST


Hi R users.

I'm using the lattice library and I need a print version for my graphics.

How Set I my boxplot's lines to black ????

tpl<-trellis.par.get("plot.line")

tpl$col<-"black"

trellis.par.set("plot.line", tpl)

Don't work. Boxplot's lines aren't black.

Thanks a lot.

This is my script.

library(lattice)

# I set background's color to white

tbg<-trellis.par.get("background")

tbg$col<-"white"

trellis.par.set("background", tbg)

# Set strip background's color to white

tsbg<-trellis.par.get("strip.background") tsbg$col<-"white"

trellis.par.set("strip.background", tsbg)

# I set symbol's color to black

tps<-trellis.par.get("plot.symbol")

tps$col<-"black"

trellis.par.set("plot.symbol", tps)

# Set line's color to black

tpl<-trellis.par.get("plot.line")

tpl$col<-"black"

trellis.par.set("plot.line", tpl)

print(bwplot(Sepal.Length~Species ,data=iris))

# This work whit xyplot but don't work whit bwplot, the boxplot's
# lines aren't black.

How Set I my boxplot's lines to black ????

Thanks a lot.

-- 
Mario Alfonso Morales Rivera
Profesor Auxiliar.
Departamento de Matemáticas y Estadistica.
Universidad de Códoba.
Colombia

______________________________________________
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
Received on Sat Jul 02 06:46:21 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:11 EST