Skip to content

Instantly share code, notes, and snippets.

@erex
erex / dave-clone.r
Last active August 29, 2015 14:01
More replicate lines and narrower sigma; histogram width a function of sigma; also wanted to get transects away from study area boundary so there were 2 sided transects throughout
# animate a (very boring) distance sampling survey
# watch a gif at: http://dill.github.io/distance-animation.gif
library(animation)
# make sure that we get the same result every time...
set.seed(1234)
# need to wrap everything in a function to pass to saveGIF, below...
plotter<-function(){
@erex
erex / some-readdst.R
Created August 12, 2019 09:34
exploring use of readdst with some of my local DistWin projects
library(readdst)
library(Distance)
# xxxxxx from Brooks Institute, appears to be distance and angle data
oli <- convert_project("C:\\Users\\eric\\Documents\\My Distance Projects\\Oli-plains")
oli.data <- oli$`Simple analysis`$env$data