[R] line endings in lattice plots: square vs. round
john.bullock at stanford.edu
Sun Apr 1 21:25:18 CEST 2007
>> I would like to use llines() to draw lines with
>> square endings in lattice plots. But the default
>> behavior seems to be to draw lines with round
>> endings. How can I change this?
>> I'm looking for a parameter like par('lend') or
>> get.gpar('lineend'), but trellis.par.get()
>> doesn't seem to have anything analogous.
>> I searched the archives but saw nothing on this.
>> I'm running R 2.3.1 with lattice 0.13.
>> Thank you,
From: "Gabor Grothendieck" <ggrothendieck at gmail.com>
To: "John Bullock" <john.bullock at stanford.edu>
Cc: <r-help at stat.math.ethz.ch>
Sent: Sunday, April 01, 2007 12:14 PM
Subject: Re: [R] line endings in lattice plots:
square vs. round
> See gpar in grid:
> xyplot(rivers ~ rivers, type = "l", lwd = 10,
> lineend = 1)
Thanks. It works. I didn't know that you could
feed gpar arguments to lattice commands that way.
More information about the R-help