Dear R users,

I would like to output the results from the image() function to a specific
grid viewport (to be able to create an .svg afterwards using the gridToSVG()
function).  
Is there a function comparable to the image() function but specifically for
the grid system?  

The trial code I used so far is:
        library(grid)
        pushViewport(viewport(w = 0.3, h = 0.5))
        image(matrix(rnorm(100)))  # as test image
        # Despite the definition of the area (w = 0.3, h = 0.5), the test
image is using the whole graphics device 
        # because the image() function does not consider viewports.

Thanks in advance!

An De Bondt
Scientist Functional Genomics


        [[alternative HTML version deleted]]

______________________________________________
[email protected] 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 via email to