plot_pca: plot_pca

View source: R/pca.R

plot_pcaR Documentation

plot_pca

Description

Plots the PCA results for the selected dataset.

Usage

plot_pca(
  dat = NULL,
  pcx = 1,
  pcy = 2,
  metadata = NULL,
  color = NULL,
  shape = NULL,
  size = NULL,
  textonoff = "On",
  legendSelect = "samples",
  input = NULL
)

Arguments

dat,

data

pcx,

x axis label

pcy,

y axis label

metadata,

additional data

color,

color for plot

shape,

shape for plot

size,

size of the plot

textonoff,

text on off

legendSelect,

select legend

input,

input param

Value

pca list

Examples

    load(system.file("extdata", "demo", "demodata.Rda",
            package="debrowser"))
    metadata<-cbind(colnames(demodata[,1:6]), 
            colnames(demodata[,1:6]),
            c(rep("Cond1",3), rep("Cond2",3)))
    colnames(metadata)<-c("samples", "color", "shape")
    
    a <- plot_pca(getNormalizedMatrix(
            demodata[rowSums(demodata[,1:6])>10,1:6]),
            metadata = metadata, color = "samples",
            size = 5, shape = "shape")


UMMS-Biocore/debrowser documentation built on Feb. 9, 2024, 6:15 p.m.