You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hist.writer <- function(summary_statistic, locus_id, diff_data){ # summary_statistic = the stat being used to compare the distributions, locus_number = which locus to create pdf for, diff_data = data to make histogram of
grDevices::pdf(file=sprintf("%s_diff_1to1_same_locus_%s.pdf",summary_statistic, locus_id)) # create pdf
hist(diff_data, breaks = 30, main = "Difference Between Posterior and Posterior Predictive Distributions", xlab = "", xlim = c(-lim, lim)) # write histogram of differences to pdf