1% File src/library/grid/man/Grid.Rd 2% Part of the R package, https://www.R-project.org 3% Copyright 1995-2007 R Core Team 4% Distributed under GPL 2 or later 5 6\name{Grid} 7\alias{Grid} 8\title{Grid Graphics} 9\description{ 10 General information about the grid graphics package. 11} 12\details{ 13 Grid graphics provides an alternative to the standard R graphics. 14 The user is able to define arbitrary rectangular regions (called 15 \emph{viewports}) on the graphics device and define a number of 16 coordinate systems for each region. Drawing can be specified to occur 17 in any viewport using any of the available coordinate systems. 18 19 Grid graphics and standard R graphics do not mix! 20 21 Type \code{library(help = grid)} to see a list of (public) 22 Grid graphics functions. 23} 24\author{Paul Murrell} 25\seealso{ 26 \code{\link{viewport}}, 27 \code{\link{grid.layout}}, and 28 \code{\link{unit}}. 29} 30\examples{ 31## Diagram of a simple layout 32grid.show.layout(grid.layout(4,2, 33 heights=unit(rep(1, 4), 34 c("lines", "lines", "lines", "null")), 35 widths=unit(c(1, 1), "inches"))) 36## Diagram of a sample viewport 37grid.show.viewport(viewport(x=0.6, y=0.6, 38 width=unit(1, "inches"), height=unit(1, "inches"))) 39## A flash plotting example 40grid.multipanel(vp=viewport(0.5, 0.5, 0.8, 0.8)) 41} 42\keyword{dplot} 43