Description Usage Arguments Value Examples
Plot CU frequency distances between two samples
(given by x
and y
).
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)
|
x, y |
Objects of |
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: |
ribosomal |
Logical, whether to indicate ribosomal genes in the plot.
Default is |
size |
Numeric, indicating points' size |
alpha |
Numeric, between 0 and 1, indicating points' transparency (default is 0.1). |
A ggplot
object.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.