[R] lattice: clipping data, not plot margins

2007-03-02 Thread Dan Bebber
I am plotting subsets of my data, using ylim.
This works fine, but the outer margin line widths of the plot are thin, due 
to clipping.
If I include
 trellis.par.set(clip=list(panel = off))
then the outer margin line widths are fine, but the outlying data is 
visible.

Is there any way of achieving both correct margin line widths and clipping 
of outlying data?

Thanks,
Dan Bebber

info: Windows XP, R 2.4.1., lattice 0.14-16

__
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] lattice: clipping data, not plot margins

2007-03-02 Thread hadley wickham
On 3/2/07, Dan Bebber [EMAIL PROTECTED] wrote:
 I am plotting subsets of my data, using ylim.
 This works fine, but the outer margin line widths of the plot are thin, due
 to clipping.
 If I include
  trellis.par.set(clip=list(panel = off))
 then the outer margin line widths are fine, but the outlying data is
 visible.

 Is there any way of achieving both correct margin line widths and clipping
 of outlying data?

Why not subset your data?  (Of course if you are overlaying
statistical transformations, eg. a smoother, this will affect those
displays as well)

Hadley

__
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] lattice: clipping data, not plot margins

2007-03-02 Thread Deepayan Sarkar
On 3/2/07, Dan Bebber [EMAIL PROTECTED] wrote:
 I am plotting subsets of my data, using ylim.
 This works fine, but the outer margin line widths of the plot are thin, due
 to clipping.
 If I include
  trellis.par.set(clip=list(panel = off))
 then the outer margin line widths are fine, but the outlying data is
 visible.

 Is there any way of achieving both correct margin line widths and clipping
 of outlying data?

I believe this behaviour has already been changed in the svn sources
of lattice (i.e. the boundaries are not clipped). There hasn't been a
release since then, but I'll try to make one within a week or two.

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.