R: Defining Colours Based on a Column of Data

define_colours {Plasmidprofiler} | R Documentation

## Defining Colours Based on a Column of Data

### Description

    This function uses RColorBrewer to produce palettes based on the factor levels of the identified column in a report.

### Usage

    define_colours(report, column)

### Arguments

`report` | Dataframe of results produced by `subsampler` or `combine_results`
`column` | Specify a column by name

### Value

Named vector of colours, names are factor levels of column supplied

### Examples

    ## Not run:
    define_colours(report, "AMR_gene")

    ## End(Not run)

[Package Plasmidprofiler version 0.1.6 Index]