generateSinglePlot {PhyloProfile} | R Documentation

## Create a single violin distribution plot

### Description

Create a single violin distribution plot

### Usage

    generateSinglePlot(plotDf, parameters, variable)

### Arguments

`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).

### Value

A violin plot as a ggplot object.

### Author(s)

Vinh Tran tran@bio.uni-frankfurt.de

### Examples

    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])

[Package PhyloProfile version 1.2.8 Index]