Skip to content

Commit

Permalink
set seed - standardize plots and data
Browse files Browse the repository at this point in the history
Former-commit-id: 68e93aa
Former-commit-id: a9fedf5
  • Loading branch information
Nowosad committed Dec 17, 2017
1 parent dafcb7e commit c23a1a3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions code/03_raster_creation.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ library(raster)
#**********************************************************
# 2 EXAMPLE RASTER AND GRAIN SIZE--------------------------
#**********************************************************
set.seed(2017-12-16)

# create rasters
r = raster(nrow = 6, ncol = 6, res = 0.5,
Expand Down
3 changes: 2 additions & 1 deletion code/create-rasters.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set.seed(2017-12-16)
library("raster")
elev = raster(nrow = 6, ncol = 6, res = 0.5,
xmn = -1.5, xmx = 1.5, ymn = -1.5, ymx = 1.5,
Expand All @@ -7,4 +8,4 @@ grain_size = c("clay", "silt", "sand")
grain = raster(nrow = 6, ncol = 6, res = 0.5,
xmn = -1.5, xmx = 1.5, ymn = -1.5, ymx = 1.5,
vals = factor(sample(grain_size, 36, replace = TRUE),
levels = grain_size))
levels = grain_size))
Binary file modified figures/03_cont_categ_rasters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c23a1a3

Please sign in to comment.