View source: R/plottingfunctions.R
PlotPCA | R Documentation |
PCA plots of data for QC
PlotPCA(inputData, viewer = T, stype = NULL, common = T, palette = "Set1")
inputData |
IntLimObject output of ReadData() |
viewer |
whether the plot should be displayed in the RStudio viewer (T) or in Shiny/Knittr (F) |
stype |
category to color-code by (can be more than two categories) |
common |
whether or not samples that are in common between the metabolite and gene expression datasets should be plotted (T/F); default is TRUE |
palette |
choose an RColorBrewer palette ("Set1", "Set2", "Set3", "Pastel1", "Pastel2", "Paired", etc.) or submit a vector of colors |
a highcharter object
dir <- system.file("extdata", package="IntLIM", mustWork=TRUE) csvfile <- file.path(dir, "NCItestinput.csv") mydata <- ReadData(csvfile,metabid='id',geneid='id') PlotPCA(mydata,stype = "PBO_vs_Leukemia")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.