powered by
This function plots the correlation between entropy and total variant incidence of all the provided protein(s).
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 )
A scatter plot
DiMA JSON converted csv file data
number of host (1/2)
any number from 0 (transparent) to 1 (opaque)
dot size in scatter plot
base font size in plot
y-axis label
x-axis label
maximum y-axis
y-axis breaks
plot_correlation(proteins_1host) plot_correlation(protein_2hosts, base_size = 2, ybreak=1, ymax=10, host = 2)
Run the code above in your browser using DataLab