Change the Color Scheme of a Spectra or Spectra2D Object
conColScheme(spectra, new.cols = NULL, silent = FALSE)
For a discussion of general issues of color, see
colorSymbol
.
if (checkForPackageWithVersion("ChemoSpec", "5.1")) { library("ChemoSpec") data(metMUD1) sumSpectra(metMUD1) newSpec <- conColScheme(metMUD1) # reports old colors newSpec <- conColScheme(metMUD1, new = c("pink", "violet")) } if (checkForPackageWithVersion("ChemoSpec2D", "0.3")) { library("ChemoSpec2D") data(MUD1) sumSpectra(MUD1) newSpec <- conColScheme(MUD1) # reports old colors newSpec <- conColScheme(MUD1, new = c("pink", "violet")) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.