search for: p2cx

Displaying 1 result from an estimated 1 matches for "p2cx".

Did you mean: p2c
2010 Nov 20
1
Grid newbie: aligning & scaling viewports
...ith my mis-handling of the viewports, but I can't quite see it. Any hints much appreciated! Bryan ************* Bryan Hanson Professor of Chemistry & Biochemistry DePauw University, Greencastle IN USA foobar <- function() { # a couple of convenience functions before we begin: p2cX <- function(r, theta) x <- r*cos(theta*2*pi/360) p2cY <- function(r, theta) y <- r*sin(theta*2*pi/360) vp <- viewport(x = 0.5, y = 0.5, width = 0.8, height = 0.8, xscale = c(-5, 5), yscale = c(-5, 5)) grid.newpage() pushViewport(vp) grid.rect(gp...