generateSinglePlot {PhyloProfile} | R Documentation |
Create a single violin distribution plot
generateSinglePlot(plotDf, parameters, variable)
plotDf |
dataframe for plotting containing values for each variable in in-group and out-group. |
parameters |
plot parameters, including size of x-axis, y-axis, legend and title; position of legend ("right", "bottom" or "none"); mean/median point; names of in-group and out-group; and plot title. NOTE: Leave blank or NULL to use default values. |
variable |
name of variable that need to be plotted (one of the column names of input dataframe plotDf). |
A violin plot as a ggplot object.
Vinh Tran tran@bio.uni-frankfurt.de
data("mainLongRaw", package="PhyloProfile") data <- mainLongRaw inGroup <- c("ncbi9606", "ncbi10116") varNames <- colnames(data)[c(4, 5)] plotDf <- dataVarDistTaxGroup(data, inGroup, "101621at6656", varNames) plotParameters <- list( "xSize" = 12, "ySize" = 12, "titleSize" = 15, "legendSize" = 12, "legendPosition" = "right", "mValue" = "mean", "inGroupName" = "In-group", "outGroupName" = "Out-group", "title" = "101621at6656" ) generateSinglePlot(plotDf, plotParameters, colnames(plotDf)[1])