strange behaviour with rotated viewports in grid

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

strange behaviour with rotated viewports in grid

Rafael Najmanovich
        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

[hidden email] - www.ebi.ac.uk/~rafi
+44-1223-492599 (voice) +44-7786-968257(mobile) +44-1223-494468 (fax)

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: strange behaviour with rotated viewports in grid

Rafael Najmanovich
        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
>
> [hidden email] - 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

[hidden email] - www.ebi.ac.uk/~rafi
+44-1223-492599 (voice) +44-7786-968257(mobile) +44-1223-494468 (fax)

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html