Skip to content

Instantly share code, notes, and snippets.

View djhocking's full-sized avatar

Daniel J. Hocking djhocking

View GitHub Profile
@djhocking
djhocking / ggplot_error_bars
Created March 12, 2014 20:47
Error bars using ggplot
### ggplot ###
# Refs: http://learnr.wordpress.com/2010/02/25/ggplot2-plotting-dates-hours-and-minutes/
# http://had.co.nz/ggplot2/
# http://wiki.stdout.org/rcookbook/Graphs/Plotting%20means%20and%20error%20bars%20%28ggplot2%29
library(ggplot2)
ggplot(data = gCount, aes(x = date, y = count, group = trt)) +
#geom_point(aes(shape = factor(trt))) +
geom_point(aes(colour = factor(trt), shape = factor(trt)), size = 3) +
@djhocking
djhocking / DM_Multinomial
Last active August 29, 2015 13:56
Open Population Hierarchical Abundance Model with Removal Sampling
# Model
cat("
model{
# Abundance Priors
a.N ~ dnorm(0, 0.01)
b.elev ~ dnorm(0, 0.01)
#b.elev2 ~ dnorm(0, 0.01)
#b.slope ~ dnorm(0, 0.01)
b.drainage ~ dnorm(0, 0.01)
b.hardwood ~ dnorm(0, 0.01)