R/getSGPColor.R

Defines functions `getSGPColor`

`getSGPColor` <-
function(
	sgp,
	type) {

	if (toupper(type)=="PRESENTATION") {
		return(colorRampPalette(c("red","yellow3","springgreen","royalblue"))(99)[sgp])
	}
	if (toupper(type)=="PRINT") {
		return(colorRampPalette(c("red","yellow3","springgreen","royalblue"))(99)[sgp])
	}
} ### END getSGPColor function

Try the SGP package in your browser

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

SGP documentation built on Oct. 23, 2023, 5:08 p.m.