Re: [R] line widths of plotting symbols in the lattice

2007-08-02 Thread Stephen Tucker
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 [EMAIL PROTECTED] wrote:

 On 7/31/07, Uwe Ligges [EMAIL PROTECTED] 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


__
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.


Re: [R] line widths of plotting symbols in the lattice

2007-07-31 Thread Uwe Ligges


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)


Uwe Ligges



 I've tried looking through the documentation for xyplot, panel.points,
 trellis.par.set, and the R-help archives. Maybe it goes by another name?
 
 Thanks in advance,
 
 Stephen
 
 __
 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.


Re: [R] line widths of plotting symbols in the lattice

2007-07-31 Thread Prof Brian Ripley
On Tue, 31 Jul 2007, Uwe Ligges 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)

lattice imports grid, but you will need library(grid) to see the help 
pages.  The link to gpar on ?xyplot should work (and does for me).



 Uwe Ligges



 I've tried looking through the documentation for xyplot, panel.points,
 trellis.par.set, and the R-help archives. Maybe it goes by another name?

 Thanks in advance,

 Stephen

 __
 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.


-- 
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
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.


Re: [R] line widths of plotting symbols in the lattice

2007-07-31 Thread Deepayan Sarkar
On 7/31/07, Uwe Ligges [EMAIL PROTECTED] 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

__
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] line widths of plotting symbols in the lattice

2007-07-30 Thread Stephen Tucker
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.

I've tried looking through the documentation for xyplot, panel.points,
trellis.par.set, and the R-help archives. Maybe it goes by another name?

Thanks in advance,

Stephen

__
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.