[R] grid: clipping points to viewport?

M.Kondrin mkondrin at hppi.troitsk.ru
Tue Feb 18 09:06:03 CET 2003


Paul Murrell wrote:

> Hi
>
>
> M.Kondrin wrote:
>
>> Why command 
>> grid.points(c(0,1,1.1),c(0,1,1.1),vp=viewport(w=0.5,h=0.5,x=0.5,y=0.5,clip=TRUE)) 
>> does not clip points (point (1.1,1.1) is still visible), although 
>> there is no problem with grid.lines(...)?
>
>
>
>
> What version/device is this happening on?
> This works for me (R 1.6.2, X11/postscript) 

Paul -thank you very much!
Problem with clipping happens when I use gtk() device from Omegahat 
RGtkDevice (R ver. 1.6.1). I think I should address this question to them.




More information about the R-help mailing list