PlotGMPair: scatter plot of gene-metabolite pairs (based on user...

View source: R/plottingfunctions.R

PlotGMPairR Documentation

scatter plot of gene-metabolite pairs (based on user selection)

Description

scatter plot of gene-metabolite pairs (based on user selection)

Usage

PlotGMPair(inputData, stype = NULL, geneName, metabName,
  palette = "Set1", viewer = T)

Arguments

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)

Value

a highcharter object

Examples

## 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)

Mathelab/IntLIM documentation built on July 9, 2022, 5:10 p.m.