[R] line widths of plotting symbols in the lattice
Stephen Tucker
brown_emu at yahoo.com
Thu Aug 2 11:20:24 CEST 2007
Thanks to all for the response - the grid.points() solution works well.
Stephen
(oddly I missed when this thread and its response actually got posted... was
starting to get worried)
--- Deepayan Sarkar <deepayan.sarkar at gmail.com> wrote:
> On 7/31/07, Uwe Ligges <ligges at statistik.uni-dortmund.de> wrote:
> >
> >
> > Stephen Tucker wrote:
> > > Dear List,
> > >
> > > Sorry, this is very simple but I can't seem to find any information
> regarding
> > > line widths of plotting symbols in the lattice package.
> > >
> > > For instance, in traditional graphics:
> > >
> > >> plot(1:10,lwd=3)
> > >> points(10:1,lwd=2,col=3)
> > >
> > > 'lwd' allows control of plotting symbol line widths.
> >
> >
> > 'lwd' is documented in ?gpar (the help page does not show up for me,
> > I'll take a closer look why) and works for me:
> >
> > xyplot(1:10 ~ 1:10, type = "l", lwd = 5)
>
> I think the point is that lwd doesn't work for _points_, and that is a
> bug (lplot.xy doesn't pass on lwd to grid.points). I'll fix it,
> meanwhile a workaround is to use grid.points directly, e.g.
>
> library(grid)
> xyplot(1:10 ~ 1:10, cex = 2, lwd = 3,
> panel = function(x, y, ...) grid.points(x, y, gp = gpar(...)))
>
> -Deepayan
>
More information about the R-help
mailing list