View source: R/compareTaxaGroups.R
featureDistTaxPlot | R Documentation |
Create protein feature distribution plots between 2 groups of taxa for a selected gene.
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
dataFeatureTaxGroup
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.