intraBplot: Intra-samples Karlin B plot

Description Usage Arguments Value Examples

Description

Plot CU frequency distances between two samples (given by x and y).

Usage

1
2
3
4
5
6
intraBplot(x, y, names = c("x", "y"), variable, ribosomal = FALSE,
  size = 1, alpha = 0.5)

## S4 method for signature 'codonTable,codonTable'
intraBplot(x, y, names = c("x", "y"),
  variable, ribosomal = FALSE, size = 1, alpha = 0.5)

Arguments

x, y

Objects of codonTable class.

names

Character vector of length 2, giving names for samples.

variable

A character, name of the function that will be used to calculate CU statistic values for plotting. Must be one of the following: c("MILC", "B", "MCB", "ENCprime").

ribosomal

Logical, whether to indicate ribosomal genes in the plot. Default is FALSE.

size

Numeric, indicating points' size

alpha

Numeric, between 0 and 1, indicating points' transparency (default is 0.1).

Value

A ggplot object.

Examples

1
2
3
4
5
6
7
require(ggplot2)
# calculate MILC distance to the average CU of the example DNA sequences,
# and to the average CU of ribosomal genes among the example DNA sequences
milc <- MILC(LD94, self = TRUE, ribosomal = TRUE)

intraBplot(x = HD59, y = LD94, names = c("HD59", "LD94"),
           variable = "MILC", size = 3)

BioinfoHR/coRdon documentation built on May 6, 2019, 8:35 p.m.