R/ExtraFunctions.R

`%.%` <- function (x, y) paste(x, y, sep = "")

d2file <- function(file="Rplot%d",height=7.5,width=7.5,which=dev.cur(), ...) {
	if(which!=dev.cur()) {
		cur <- dev.cur()
		dev.set(which)
	}
	else cur <- NULL

	dev.copy(device=pdf,file=file,height=height,width=width,
		onefile=TRUE,paper="special",...)	
	dev.off()
	if(!is.null(cur))dev.set(cur)
	else dev.set(which)
}

Try the InteractiveIGraph package in your browser

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

InteractiveIGraph documentation built on May 2, 2019, 2:08 a.m.