This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Homebrew build logs for augustus on macOS 10.14.4 | |
Build date: 2019-05-22 15:40:41 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
intersecting.axis <- function(side, at = NULL, labels = TRUE, | |
line = NA, pos = NA, outer = FALSE, lty = "solid", | |
lwd = 1, lwd.ticks = lwd, col = NULL, col.ticks = NULL, | |
hadj = NA, padj = NA, ...) { | |
if (! outer) { | |
x.range <- extendrange(par("usr")[1:2],f=-0.01) | |
y.range <- extendrange(par("usr")[3:4],f=-0.01) | |
pos <- NA | |
xline <- c(NA,NA) | |
yline <- c(NA,NA) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################## | |
# Metropolis-Hastings MCMC | |
# | |
# Runs a Metropolis-Hasting MCMC chain for a given likelihood function. | |
# Proposal steps are sampled from a Gaussian distribution, either in a single | |
# step or sequentially over the parameter space. | |
# | |
# Input: | |
# theta : starting value of the chain | |
# lik.fun : likelihood function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jelly.beans <- function(data, brewerset = "Set1", cols = brewer.pal(length(data),brewerset), | |
diffs = rep(NA,length(data)), notches = FALSE, | |
xlab = NA, ylab = NA, las = rep(0,2), bean.width = c(3,8,3,1,2), ...) { | |
require(RColorBrewer) | |
# data = list(grp1=vector(),grp2=vector(),grp3=vector()) | |
# bean.width = c(0.95-lines,0.5-lines,median-line,grid-line) | |
# diffs = c("A", "A", "B") eg to present TukeyHSD values | |
do.call(rbind,lapply(1:length(data),function(i) c(i,data[[i]]))) | |
num.grps <- length(data) | |
grp.names <- names(data) |