View source: R/plotting_tools.R
Plot Mean Relative Widths
1 2 3 4 5 6 7 | plot_mrw(BNPR_outs, traj = NULL, xlim = NULL, ylim = NULL,
nbreaks = 40, ltys = 1, lwds = 2, cols = "black",
xlab = "Time", xmarline = 3, axlabs = NULL, ymin_zero = FALSE,
ylab = "Mean Relative Width", main = "", heatmaps = TRUE,
heatmap_labels = FALSE, heatmap_labels_side = "right",
heatmap_width = 7, legends = NULL, legend_place = "topleft",
legend_cex = 1, bty = "n", ...)
|
BNPR_outs |
one or more outputs of BNPR or BNPR_PS. |
traj |
function summarizing the true effective population size trajectory. |
xlim |
numeric x-axis interval. |
ylim |
numeric y-axis interval. |
nbreaks |
integer number of bins for sampling heatmap. |
ltys |
line types for estimated trajectories. |
lwds |
line widths for estimated trajectories. |
cols |
colors for estimated trajectories. |
xlab |
character x-axis label. |
xmarline |
numeric if not using default x-axis labels, how far to put the labels from the axis. |
axlabs |
character vector x-axis labels. |
ymin_zero |
logical |
ylab |
character y-axis label. |
main |
character main plot title. |
heatmaps |
boolean whether to display sampling and coalescent heatmaps. |
heatmap_labels |
boolean whether to display labels on heatmaps. |
heatmap_labels_side |
string which side of plot to display heatmaps. |
heatmap_width |
numeric how wide heatmaps should be. |
legends |
character legend texts. |
legend_place |
character location of legend pane. See legend(). |
legend_cex |
numeric expansion factor for legend pane. |
bty |
integer box type. See legend(). |
... |
additional arguments to be passed onto plot(). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.