Re: [R] line endings in lattice plots: square vs. round

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Sun 01 Apr 2007 - 19:14:46 GMT

See gpar in grid:

library(grid)
?gpar

library(lattice)
xyplot(rivers ~ rivers, type = "l", lwd = 10, lineend = 1)

On 4/1/07, John Bullock <john.bullock@stanford.edu> wrote:
>
> 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,
> --John
>
> ______________________________________________
> 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
> and provide commented, minimal, self-contained, reproducible code.
>



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 and provide commented, minimal, self-contained, reproducible code. Received on Mon Apr 02 05:20:38 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 01 Apr 2007 - 19:30:37 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.