Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
spatialec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ben Anderson
spatialec
Commits
cedd515a
Commit
cedd515a
authored
5 years ago
by
Ben Anderson
Browse files
Options
Downloads
Patches
Plain Diff
moved repo settings to new method
parent
ae8a05c4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
_scripts/spatialecSettings.R
+0
-49
0 additions, 49 deletions
_scripts/spatialecSettings.R
with
0 additions
and
49 deletions
_scripts/spatialecSettings.R
deleted
100644 → 0
+
0
−
49
View file @
ae8a05c4
# ------ Global SPATIALEC Settings -------
# Set knitr options -----
knitr
::
opts_chunk
$
set
(
echo
=
FALSE
)
# do not echo code
knitr
::
opts_chunk
$
set
(
warning
=
TRUE
)
knitr
::
opts_chunk
$
set
(
message
=
TRUE
)
knitr
::
opts_chunk
$
set
(
fig_caption
=
TRUE
)
knitr
::
opts_chunk
$
set
(
fig_height
=
6
)
# default, make it bigger to stretch vertical axis
knitr
::
opts_chunk
$
set
(
fig_width
=
8
)
# full width
knitr
::
opts_chunk
$
set
(
tidy
=
TRUE
)
# tidy up code in case echo = TRUE
# Local parameters ----
sParams
<-
list
()
# > Assigns variables "sysName", "nodeName" and "userName" to global environment ----
sysInfo
<-
Sys.info
()
sParams
$
sysName
<-
sysInfo
[[
1
]]
sParams
$
nodeName
<-
sysInfo
[[
4
]]
sParams
$
userName
<-
sysInfo
[[
7
]]
# > colour blind palettes for charts ----
# http://www.cookbook-r.com/Graphs/Colors_(ggplot2)/#a-colorblind-friendly-palette
# with grey
sParams
$
cbgPalette
<-
c
(
"#999999"
,
"#E69F00"
,
"#56B4E9"
,
"#009E73"
,
"#F0E442"
,
"#0072B2"
,
"#D55E00"
,
"#CC79A7"
)
# with black
sParams
$
cbbPalette
<-
c
(
"#000000"
,
"#E69F00"
,
"#56B4E9"
,
"#009E73"
,
"#F0E442"
,
"#0072B2"
,
"#D55E00"
,
"#CC79A7"
)
# NB for plots with more categories etc use the viridis library
# https://cran.r-project.org/web/packages/viridis/vignettes/intro-to-viridis.html
# Paths ----
# > Location of includes ----
# Generally go at start or end of .Rmd reports
sParams
$
spatialecAbout
<-
paste0
(
here
::
here
(),
"/_includes/spatialecAbout.Rmd"
)
# > Green Grid data ----
sParams
$
ggPath
<-
paste0
(
"/Volumes/hum-csafe/Research Projects/GREEN Grid"
)
# > NZ Census data ----
sParams
$
dataPath
<-
"~/Data/NZ_Census/data/"
sParams
$
gisPath
<-
"~/Data/NZ_Census/gis/"
sParams
$
areasTable2013
<-
paste0
(
sParams
$
gisPath
,
"2013/2013_Areas_Table.txt"
)
# Metadata
sParams
$
metadata
<-
"Marie Sklodowska-Curie Action, 'Developing methods to model local area domestic electricity demand', SPATIALEC, Grant No 700386"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment