https://github.com/brilraven/ZebrafishMotionCues
Raw File
Tip revision: c29e728853d71d06bf643ea28d38c320f1976dd4 authored by brilraven on 12 July 2018, 20:49:54 UTC
updated link to paper
Tip revision: c29e728
PackagesAndGlobalSettings.txt
# ---- data prep/wrangling
library(tidyverse)
library(lubridate)

# ---- stats & plots
library(nlme)				# Linear Mixed-Models
library(lme4)				# Genearlized Linear Mixed-Models
library(predictmeans) 		# Cook's Distance from lme object
library(multcomp)			# Multiple comparisons
library(minpack.lm) 		# fitting nonlinear models


# ---- plotting
library(grid)  		# for ggplot's 'unit' - used to scale legend's text
library(gridExtra)  		# for ggplot's 'unit' - used to scale legend's text
library(splines)        # for manual model fitting of residuals
theme_set(theme_bw())

# plotting - color bind friendly palettes: http://www.cookbook-r.com/Graphs/Colors_(ggplot2)/

cbbPalette <- c("#000000", "#E69F00", "#56B4E9", "#009E73", "#F0E442", "#0072B2", "#D55E00", "#CC79A7")

# default colors for speed levels 
cols1 <- cbbPalette[6]
cols10 <- cbbPalette[7]

back to top