R/cellplot.R

Defines functions cellplot

cellplot <- function(x, y, name=NULL, vp=NULL, clip = TRUE, e) {
	pushViewport(viewport(layout.pos.row=x, layout.pos.col=y, name=name, clip=clip))
	n <- 1
	if (!is.null(vp)){ 
		pushViewport(vp)
		n <- n + 1
	}
	v <- current.viewport()
	x <- e
	upViewport(n=n)
	gTree(children=gList(x), vp=v, name=name)
}

Try the tmap package in your browser

Any scripts or data that you put into this service are public.

tmap documentation built on Sept. 13, 2023, 1:07 a.m.