[R] xyplot tick marks and line thickness

Gabor Grothendieck ggrothendieck at gmail.com
Thu Aug 24 19:02:00 CEST 2006


Look through the output of trellis.par.get() for the right parameters
or when all else fails use grid (which we use below for the
box around the panel since I could not locate the parameter):

library(lattice)
library(grid)
x <- 1:12
g <- gl(3,4)
lwd <- 3
xyplot(x ~ x | g, type = "l", lwd = lwd,
	scales = list(tck = -1, lwd = lwd),
	par.settings = list(add.text = list(lwd = lwd),
		strip.border = list(lwd = lwd)),
	panel = function(...) {
		grid.rect(gp = gpar(lwd = lwd))
		panel.xyplot(...)
	}
)


On 8/24/06, Piet Bell <pj.bell at yahoo.co.uk> wrote:
> Hello,
>  A made a xyplot using the lattice library in R (latest version).
>
>  The publisher of our paper has requested:
>
>  1. all tick marks should point inwards instead of outwards.
>
>  2. All lines should be thicker (lines, axes, boxes, etc. Everything). Lines is easy...I used:  lwd=1.5   but what about the lines of the axes, and the lines that build up the plot itself?....?
>
>  Any suggestions?
>
>  Kind regards,
>
>  Piet Bell
>
>
> ---------------------------------
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
>



More information about the R-help mailing list