Rafael Najmanovich
2006-Jun-12 10:26 UTC
[R] strange behaviour with rotated viewports in grid
Dear all, I am having a problem using grid when rotating a viewport. It seems to plot everything on a grey background colour which I am not able to get rid of. Even book examples such as that that plot figure 5.10 in P. Murrell's R Graphics book show the same behaviour. The following example illustrates this issue. I would appreciate if anyone has a way to solve this. Best regards, r. pushViewport(viewport(width=0.9,height=0.9,name="vp1")) grid.rect() pushViewport(viewport(width=0.3,height=0.9,angle=0,name="vp2")) grid.rect() upViewport() pushViewport(viewport(width=0.3,height=0.9,angle=10,name="vp3")) grid.rect() Dr. Rafael Najmanovich European Bioinformatics Institute Wellcome Trust Genome Campus Cambridge CB10 1SD United Kingdom rafael.najmanovich at ebi.ac.uk - www.ebi.ac.uk/~rafi +44-1223-492599 (voice) +44-7786-968257(mobile) +44-1223-494468 (fax)
Rafael Najmanovich
2006-Jun-12 14:04 UTC
[R] strange behaviour with rotated viewports in grid
Dear All, The issue I reported earlier seems to be restricted at least to Mac OSX GUI using 2.3.1. It does not occur in the Terminal in Mac OSX (R version 2.3.1) or in Linux (R version 2.2.1). I will separately send this to r-sig-mac. Best, On 12 Jun 2006, at 11:26, Rafael Najmanovich wrote:> Dear all, > > I am having a problem using grid when rotating a viewport. It > seems to plot everything on a grey background colour which I am not > able to get rid of. Even book examples such as that that plot > figure 5.10 in P. Murrell's R Graphics book show the same behaviour. > The following example illustrates this issue. I would appreciate > if anyone has a way to solve this. > Best regards, > > r. > > pushViewport(viewport(width=0.9,height=0.9,name="vp1")) > grid.rect() > pushViewport(viewport(width=0.3,height=0.9,angle=0,name="vp2")) > grid.rect() > upViewport() > pushViewport(viewport(width=0.3,height=0.9,angle=10,name="vp3")) > grid.rect() > > > Dr. Rafael Najmanovich > European Bioinformatics Institute > Wellcome Trust Genome Campus > Cambridge CB10 1SD > United Kingdom > > rafael.najmanovich at ebi.ac.uk - www.ebi.ac.uk/~rafi > +44-1223-492599 (voice) +44-7786-968257(mobile) +44-1223-494468 (fax) > >Dr. Rafael Najmanovich European Bioinformatics Institute Wellcome Trust Genome Campus Cambridge CB10 1SD United Kingdom rafael.najmanovich at ebi.ac.uk - www.ebi.ac.uk/~rafi +44-1223-492599 (voice) +44-7786-968257(mobile) +44-1223-494468 (fax)