dataVarDistTaxGroup {PhyloProfile} | R Documentation

## Create data for variable distribution comparison plot

### Description

Create data for plotting the distribution comparison between 2 groups of taxa for a selected gene.

### Usage

    dataVarDistTaxGroup(data, inGroup, gene, variable)

### Arguments

`data` | input phylogenetic profile in long format (see ?mainLongRaw and ?createLongMatrix)
`inGroup` | ID list of in-group taxa (e.g. "ncbi1234")
`gene` | ID of gene that need to be plotted the distribution comparison between in- and out-group taxa.
`variable` | var1 or c(var1, var2)

### Value

Dataframe containing list of values for all available variables for the selected genes in in-group and out-group taxa (max. 3 columns).

### Author(s)

Vinh Tran (tran@bio.uni-frankfurt.de)

### See Also

`createLongMatrix`

### Examples

    data("mainLongRaw", package="PhyloProfile")
    data <- mainLongRaw
    inGroup <- c("ncbi9606", "ncbi10116")
    variable <- colnames(data)[c(4, 5)]
    dataVarDistTaxGroup(data, inGroup, "101621at6656", variable)

[Package PhyloProfile version 1.2.8 Index]