buildPlottingDF {microbiomeExplorer} | R Documentation

## Sets up a dataframe used by several plotting functions by joining the required data with relevant phenotype data

### Description

Sets up a dataframe used by several plotting functions by joining the required data with relevant phenotype data

### Usage

    buildPlottingDF(
      df,
      phenoTable,
      x_var = NULL,
      facet1 = NULL,
      facet2 = NULL,
      col_by = NULL,
      col_name = col_by,
      id_var = NULL
    )

### Arguments

`df` | dataframe storing plotting data values
`phenoTable` | pData of the MRexperiment; all following parameters must be a column of the phenoTable
`x_var` | main plotting variable
`facet1` | column-based faceting (can be NULL)
`facet2` | row-based faceting (can be NULL)
`col_by` | coloring factor (can be NULL)
`col_name` | character to be used as name for col_by
`id_var` | variable used to connect samples longitudinally (can be NULL)

### Value

dataframe obtained by joining df and relevant columns of phenoTable

[Package microbiomeExplorer version 1.4.0 Index]