makeAlignmentTilePlot {CrispRVariants} | R Documentation

## Internal CrispRVariants function for creating the plotAlignments background

### Description

Takes a matrix of characters, x and y locations and colours, creates a ggplot geom_tile plot with tiles labelled by the characters.

### Usage

    makeAlignmentTilePlot(m, ref, xlab, plot.text.size, axis.text.size, xtick.labs,
      xtick.breaks, tile.height)

### Arguments

`m` | A matrix with column headings Var1: y location, Var2: x location, cols: tile fill colour, isref: transparency value text_cols: text colour
`ref` | The reference sequence, only used for checking the number of x-tick labels when x-tick breaks are not supplied
`xlab` | Label for the x axis
`plot.text.size` | Size for text within plot
`axis.text.size` | Size for text on axes
`xtick.labs` | x axis labels
`xtick.breaks` | Locations of x labels
`tile.height` | Controls whitespace between tiles

### Value

A ggplot object

### Author(s)

Helen Lindsay

[Package CrispRVariants version 1.22.0 Index]