View source: R/densityCognostics.R
densityCognostics | R Documentation |
The densityCognostics
function provides a set of default cognostics
to be used with density plots in Trelliscope. The densityCognostics
function accepts the name of the variable used for the density plot and
returns a function that may be applied to each ftmsData
object, as is
appropriate for use with the makeDisplay
function. See
Examples section for use.
densityCognostics(variable)
variable |
column name of column in |
a function that may be applied to objects of type peakData
and groupSummary
## Not run:
library(ftmsRanalysis)
library(trelliscope)
vdbDir <- vdbConn(file.path(tempdir(), "trell_test"), autoYes = TRUE)
data('exampleProcessedPeakData')
## Plot density of NOSC variable for each sample
sampleDdo <- divideBySample(exampleProcessedPeakData)
panelFn1 <- panelFunctionGenerator("densityPlot", variable="NOSC")
makeDisplay(sampleDdo,
panelFn=panelFn1,
cogFn=densityCognostics("NOSC"),
name = "NOSC_density_by_sample",
group = "Sample")
## Plot density of NOSC for each group
groupDdo <- divideByGroup(exampleProcessedPeakData)
panelFn2 <- panelFunctionGenerator("densityPlot", variable="NOSC", groups=NA)
makeDisplay(groupDdo,
panelFn=panelFn2,
cogFn=densityCognostics("NOSC"),
name = "NOSC_density_by_group",
group = "Group")
view()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.