[R] strange behaviour with rotated viewports in grid

Rafael Najmanovich rafael.najmanovich at ebi.ac.uk
Mon Jun 12 12:26:18 CEST 2006


	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)



More information about the R-help mailing list