R/drawPoints.R

Defines functions .drawPoints

Documented in .drawPoints

#'
#' Add Points to a Score Plot
#'
#' *Internal function.*
#'
#' @param PCs  Integer.  The PCs to plot.
#' @param spectra `r .writeDoc_Spectra3()`
#' @param case String. The type of data reduction that was done.
#' @param use.sym  Logical.  Should symbols be used?
#' @param \ldots `r .writeDoc_GraphicsDots()`
#' @return None.  Side effect is a modifed plot.
#'
#' @author `r .writeDoc_Authors("BH")`
#' @export
#' @keywords internal
#' @importFrom graphics plot
#'

.drawPoints <- function(PCs, spectra, case, use.sym, ...) {
  if (case == "PCA") {
    if (!use.sym) plot(PCs, type = "p", col = spectra$colors, pch = 20, ...)
    if (use.sym) plot(PCs, type = "p", col = "black", pch = spectra$sym, ...)
  }

  if (case == "MIA") {
    plot(PCs, type = "p", col = spectra$colors, pch = 20, ...)
  }
}

Try the ChemoSpecUtils package in your browser

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

ChemoSpecUtils documentation built on May 31, 2023, 5:56 p.m.