All Projects → bcgov → bc-population-indicator

bcgov / bc-population-indicator

Licence: Apache-2.0 License
R scripts for an indicator on trends in B.C.'s population size & distribution published on Environmental Reporting BC

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to bc-population-indicator

bcmaps
An R package of map layers for British Columbia
Stars: ✭ 53 (+341.67%)
Mutual labels:  rstats, env
rems
An R package to access data from British Columbia's Environmental Monitoring System
Stars: ✭ 18 (+50%)
Mutual labels:  rstats, env
rchess
♛ Chess package for R
Stars: ✭ 68 (+466.67%)
Mutual labels:  rstats
paleobioDB
R interface to the Paleobiology Database
Stars: ✭ 36 (+200%)
Mutual labels:  rstats
prettyB
Prettified base graphics
Stars: ✭ 56 (+366.67%)
Mutual labels:  rstats
cattonum
Encode Categorical Features
Stars: ✭ 31 (+158.33%)
Mutual labels:  rstats
tikz favorites
collection of favorite TikZ graphics
Stars: ✭ 62 (+416.67%)
Mutual labels:  rstats
mrgsolve
Simulate from ODE-based population PK/PD and QSP models in R
Stars: ✭ 84 (+600%)
Mutual labels:  rstats
rmd4sci
Rmarkdown for Scientists
Stars: ✭ 113 (+841.67%)
Mutual labels:  rstats
lorem
Generate Lorem Ipsum Text
Stars: ✭ 18 (+50%)
Mutual labels:  rstats
reactrend
react-trend for R based on reactR
Stars: ✭ 16 (+33.33%)
Mutual labels:  rstats
regista
An R package for soccer modelling
Stars: ✭ 71 (+491.67%)
Mutual labels:  rstats
env
A lightweight package for loading OS environment variables into structs for Go projects
Stars: ✭ 24 (+100%)
Mutual labels:  env
BayesHMM
Full Bayesian Inference for Hidden Markov Models
Stars: ✭ 35 (+191.67%)
Mutual labels:  rstats
ctv
CRAN Task View Initiative
Stars: ✭ 17 (+41.67%)
Mutual labels:  rstats
rdryad
R client for Dryad web services
Stars: ✭ 25 (+108.33%)
Mutual labels:  rstats
elpresidente
🇺🇸 Search and Extract Corpus Elements from 'The American Presidency Project'
Stars: ✭ 21 (+75%)
Mutual labels:  rstats
NLMR
📦 R package to simulate neutral landscape models 🏔
Stars: ✭ 57 (+375%)
Mutual labels:  rstats
shodan
🌑 R package to work with the Shodan API
Stars: ✭ 16 (+33.33%)
Mutual labels:  rstats
QuickLookR
macOS QuickLook plugin for R save(), saveRDS() & feather files
Stars: ✭ 41 (+241.67%)
Mutual labels:  rstats

img License

Trends in B.C.'s Population Size & Distribution

A set of R scripts to populate an indicator on trends in B.C.'s population size and distribution. These scripts reproduce the analysis and plots published on Environmental Reporting BC.

Usage

Data

The source data for the indicator is publically available from BC Stats, the central statistical agency of the Province of British Columbia.

(1) The 'Annual population, July 1, 1867-2017 (CSV)' data file is downloaded directly from the BC Stats web page, distributed under the Access Only - B.C. Crown Copyright licence.

(2) The 'Sub-provincial Population Estimates 1986-2017 (CSV)' data file (Access Only - B.C. Crown Copyright licence) can be manually downloaded from the BC Stats Sub-provincial Population Estimates search tool following this manual query:

   + Select region type: Regional District
   + Select regions: select all
   + Select sex(es): Totals
   + Select age group: Totals
   + Generate output
   + Export to CSV

Code

There are two core scripts that are required for the analysis, they need to be run in order:

  • 01_clean.R - cleans and prepares data for analysis
  • 02_output.R - creates maps and graphs and saves outputs

The run_all.R script can be sourceed to run it all at once.

Most packages used in the analysis can be installed from CRAN using install.packages(), but you will need to install envreportutils and patchwork using devtools:

install.packages("devtools") # if you don't already have it installed

library(devtools)
install_github("bcgov/envreportutils")
install_github("thomasp85/patchwork")

Getting Help or Reporting an Issue

To report bugs/issues/feature requests, please file an issue.

How to Contribute

If you would like to contribute, please see our CONTRIBUTING guidelines.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

License

Copyright 2016 Province of British Columbia

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at 

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

This repository is maintained by Environmental Reporting BC. Click here for a complete list of our repositories on GitHub.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].