R/Module_SUB_Assorted.R

Defines functions data.rescale slope.reflines empty.plot

empty.plot <-function(x){plot(1:5,1:5,type="n",bty="n",axes=FALSE,xlab="",ylab="")}




slope.reflines <- function(dir="h",bm = c(-15,-25),cols = c("green","red") ){
				if(dir=="h"){abline(h=bm,col=cols) }
				if(dir=="v"){abline(v=bm,col=cols) }
}


data.rescale <- function(x){
# x is a vector
x.out <- x/max(x,na.rm=TRUE)*10
}
SOLV-Code/MetricsTest documentation built on Feb. 19, 2021, 10:12 p.m.