View source: R/plottingfunctions.R
PlotGMPair | R Documentation |
scatter plot of gene-metabolite pairs (based on user selection)
PlotGMPair(inputData, stype = NULL, geneName, metabName, palette = "Set1", viewer = T)
inputData |
IntLimObject output of ReadData() or FilterData() |
stype |
category to color-code by |
geneName |
string of select geneName |
metabName |
string of select metabName |
palette |
choose an RColorBrewer palette ("Set1", "Set2", "Set3", "Pastel1", "Pastel2", "Paired", etc.) or submit a vector of colors |
viewer |
whether the plot should be displayed in the RStudio viewer (T) or in Shiny/Knittr (F) |
a highcharter object
## Not run: dir <- system.file("extdata", package="IntLIM", mustWork=TRUE) csvfile <- file.path(dir, "NCItestinput.csv") mydata <- ReadData(csvfile,metabid='id',geneid='id') PlotGMPair(mydata,stype="PBO_vs_Leukemia","DLG4","(p-Hydroxyphenyl)lactic acid") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.