featureDistTaxPlot: Create feature distribution comparison plot

Description Usage Arguments Value Author(s) See Also Examples

View source: R/compareTaxaGroups.R

Description

Create protein feature distribution plots between 2 groups of taxa for a selected gene.

Usage

1
featureDistTaxPlot(data, plotParameters)

Arguments

data

dataframe for plotting (see ?dataFeatureTaxGroup)

plotParameters

plot parameters, including size of x-axis, y-axis, legend and title; position of legend ("right", "bottom" or "none"); names of in-group and out-group; flip the plot coordinate ("Yes" or "No"). NOTE: Leave blank or NULL to use default values.

Value

Distribution plots as a ggplot2 object.

Author(s)

Vinh Tran tran@bio.uni-frankfurt.de

See Also

dataFeatureTaxGroup

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
data("mainLongRaw", package="PhyloProfile")
data <- mainLongRaw
gene <- "101621at6656"
inputFile <- system.file(
    "extdata", "domainFiles/101621at6656.domains",
    package = "PhyloProfile", mustWork = TRUE
)
type <- "file"
domainDf <- parseDomainInput(gene, inputFile, type)
inGroup <- c("ncbi9606", "ncbi10116")
plotDf <- dataFeatureTaxGroup(data, domainDf, inGroup, gene)
plotParameters <- list(
    "xSize" = 12,
    "ySize" = 12,
    "angle" = 15,
    "legendSize" = 12,
    "inGroupName" = "In-group",
    "outGroupName" = "Out-group",
    "flipPlot" = "No"
)
featureDistTaxPlot(plotDf, plotParameters)

PhyloProfile documentation built on March 27, 2021, 6:01 p.m.