plotMutSites: Plot tree and mutation sites

Description Usage Arguments Value Examples

View source: R/plotMutSites.R

Description

The mutated sites for each tip in a phylogenetic tree will be represented as colored dots positioned by their site number.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
plotMutSites(x, ...)

## S3 method for class 'SNPsites'
plotMutSites(x, showTips = FALSE, ...)

## S3 method for class 'lineagePath'
plotMutSites(x, ...)

## S3 method for class 'fixationSites'
plotMutSites(x, ...)

## S3 method for class 'paraFixSites'
plotMutSites(
  x,
  widthRatio = 0.75,
  fontSize = 3.88,
  dotSize = 1,
  lineSize = 0.5,
  ...
)

Arguments

x

An SNPsites object.

...

Other arguments

showTips

Whether to plot the tip labels. The default is FALSE.

widthRatio

The width ratio between tree plot and SNP plot

fontSize

The font size of the mutation label in tree plot

dotSize

The dot size of SNP in SNP plot

lineSize

The background line size in SNP plot

Value

A tree plot with SNP as dots for each tip.

Examples

1
2
3
4

sitePath documentation built on April 17, 2021, 6:05 p.m.