plot_pca

Share:

Description

Plots the PCA results for the selected dataset.

Usage

1
2
plot_pca(dat = NULL, pcx = 1, pcy = 2, metadata = NULL, color = NULL,
  shape = NULL, size = NULL, textonoff = "Off", legendSelect = "fill")

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

Value

pca list

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
    load(system.file("extdata", "demo", "demodata.Rda",
            package="debrowser"))
    metadata<-cbind(colnames(demodata[,2:7]), 
            colnames(demodata[,2:7]),
            c(rep("Cond1",3), rep("Cond2",3)))
    colnames(metadata)<-c("samples", "color", "shape")

    a <- plot_pca(getNormalizedMatrix(
            demodata[rowSums(demodata[,2:7])>10,2:7]),
            metadata = metadata, color = "samples",
            size = 5, shape = "shape")

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.