plotStat {FindMyFriends} | R Documentation

## Plot (very) basic statistics on the pangenome

### Description

This method plots the number of genes in each organism and, if gene groups have been defined, the number of singleton, accessory and core gene groups.

### Usage

    plotStat(object, ...)

    ## S4 method for signature 'pgVirtual'
    plotStat(object, sort = TRUE, color, ...)

### Arguments

`object` | A pgVirtual subclass
`...` | Parameters passed on to color scale.
`sort` | logical. Should Genomes be sorted based on their number of genes
`color` | A metadata name to color the organisms by

### Value

This function is called for its side effects

### Methods (by class)

- `pgVirtual`: Plot basic statistics for pgVirtual subclasses

### Examples

    testPG <- .loadPgExample(withGroups=TRUE)

    # Should make a nice little plot
    plotStat(testPG)

[Package FindMyFriends version 1.17.0 Index]