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
CenterForAssessment/SGP documentation built on March 12, 2024, 9:43 a.m.