Description Usage Arguments Details Value Examples
Draws scores plots for the SVDforPCA, PLSDA or OPLSDA functions.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | DrawScores(
  obj,
  type.obj = c("PCA", "PLSDA", "OPLSDA"),
  drawNames = TRUE,
  createWindow = FALSE,
  main = NULL,
  color = NULL,
  pch = NULL,
  size = 1,
  cex.lab = 3,
  axes = c(1, 2),
  xlab = NULL,
  ylab = NULL,
  drawEllipses = FALSE,
  typeEl = "norm",
  levelEl = 0.9,
  drawPolygon = FALSE,
  noLegend = FALSE,
  legend_color_manual = NULL,
  legend_shape_manual = NULL
)
 | 
| obj | The objects resulting from a PCA, PLSDA or OPLSDA analysis. | 
| type.obj | The type of object to be plotted. | 
| drawNames | If  | 
| createWindow | If  | 
| main | Plot title. If  | 
| color | Optional character, factor or numeric vector giving the color of the observations. If  | 
| pch | Optional character, factor or numeric vector giving the pch of the observations. | 
| size | The points size. | 
| cex.lab | The size of points labels. | 
| axes | Numerical vector indicating the PC axes that are drawn. Only the two first values are considered for scores plot. See details#' @param num.stacked Number of stacked plots if  | 
| xlab | Label for the x-axis. | 
| ylab | Label for the y-axis. | 
| drawEllipses | If  | 
| typeEl | The type of ellipse, either "norm" (multivariate normal distribution), "t" (multivariate t-distribution) and "euclid" draws a circle with the radius equal to level, representing the euclidean distance from the center. | 
| levelEl | The confidence level at which to draw an ellipse. | 
| drawPolygon | If  | 
| noLegend | If  | 
| legend_color_manual | If not  | 
| legend_shape_manual | If not  | 
If type.obj is 'OPLSDA', axes = 1 represents the predictive score vector, axes = 2 represents the first orthogonal score vector, etc.
A score or loading plot in the current device.
| 1 2 3 4 5 6 7 | data('HumanSerum')
res.PCA = SVDforPCA(HumanSerumSpectra)
class = ClassHS
DrawScores(res.PCA, drawNames=TRUE, type.obj = 'PCA',
createWindow=FALSE, main = 'PCA score plot for HumanSerum dataset',
  color = class, axes =c(1,2))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.