plot_correlation {vDiveR} | R Documentation |
Entropy and total variant incidence correlation plot
Description
This function plots the correlation between entropy and total variant incidence of all the provided protein(s).
Usage
plot_correlation(
df,
host = 1,
alpha = 1/3,
line_dot_size = 3,
base_size = 11,
ylabel = "k-mer entropy (bits)\n",
xlabel = "\nTotal variants (%)",
ymax = ceiling(max(df$entropy)),
ybreak = 0.5
)
Arguments
df |
DiMA JSON converted csv file data |
host |
number of host (1/2) |
alpha |
any number from 0 (transparent) to 1 (opaque) |
line_dot_size |
dot size in scatter plot |
base_size |
base font size in plot |
ylabel |
y-axis label |
xlabel |
x-axis label |
ymax |
maximum y-axis |
ybreak |
y-axis breaks |
Value
A scatter plot
Examples
plot_correlation(proteins_1host)
plot_correlation(protein_2hosts, base_size = 2, ybreak=1, ymax=10, host = 2)
[Package vDiveR version 1.2.1 Index]