Skip to content
Prev 303925 / 398513 Next

Controlling line-join style in Lattice

You can set grid parameters in the grid.pars component of
trellis.par.get().

  x <- 1:4; y <- c(1,3,2,4)
  xyplot(y ~ x, type = "l", lwd = 20)  # default linejoin

  ## set linejoin to 'mitre'
  trellis.par.set(grid.pars = list(linejoin = "mitre"))
  xyplot(y ~ x, type = "l", lwd = 20)

Peter Ehlers
On 2012-08-22 11:09, Morgan, Andrew Parker wrote: