-
Notifications
You must be signed in to change notification settings - Fork 2
/
LoadingSaving.R
52 lines (36 loc) · 1.35 KB
/
LoadingSaving.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#Loading/saving/packages needed
#This was originally done on R 3.3.1 "Bug in your hair"
setwd("/Users/farrer/Dropbox/EmilyComputerBackup/Documents/Niwot_King/Figures&Stats/kingdata/NWT_MovingUphill2")
setwd("/Users/farrer/Dropbox/EmilyComputerBackup/Documents/Niwot_King/Figures&Stats/kingdata")
save.image("~/Dropbox/EmilyComputerBackup/Documents/Niwot_King/Figures&Stats/kingdata/MovingUphill2_Workspace_Analysis5.Rdata") #alternate between 4 and 5
load("/Users/farrer/Dropbox/EmilyComputerBackup/Documents/Niwot_King/Figures&Stats/kingdata/MovingUphill2_Workspace_Analysis5.Rdata")
#for data cleaning
#for installing phyloseq
#source('http://bioconductor.org/biocLite.R')
#biocLite('phyloseq')
library(phyloseq)
#packageVersion("phyloseq")
library(picante) #for phylogenetic diversity
#for cooccurrence networks
library(foreach)
library(doParallel)
#for plotting
library(igraph)
#library(fdrtool)
library(ggplot2)
library(grid) #for unit function in ggplot2 for legend
#for network stats
library(NetIndices)
#for manipulating datasets for plotting
library(tidyr)
library(dplyr)
library(plotrix)
detach(package:igraph)
sessionInfo()
#extra not needed
library(vegan)
library(reshape)
library(plotrix)
library(Kendall)
library(data.table)
#library(BiodiversityR) #this requires X11 and takes a while to load, you need to close the window that it opens in rcommander