Description Usage Arguments Value Author(s) See Also Examples
View source: R/compareTaxaGroups.R
Create protein feature distribution plots between 2 groups of taxa for a selected gene.
| 1 | featureDistTaxPlot(data, plotParameters)
 | 
| 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. | 
Distribution plots as a ggplot2 object.
Vinh Tran tran@bio.uni-frankfurt.de
| 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)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.