Skip to content

Instantly share code, notes, and snippets.

View timchurches's full-sized avatar

Tim Churches timchurches

  • Sydney, Australia
View GitHub Profile
---
title: "t-SNE example using R"
output: html_notebook
---
This is an [R Markdown](http://rmarkdown.rstudio.com) Notebook. Execute each code chunk in sequence by clicking the *Run* button within the chunk or by placing your cursor inside it and pressing *Cmd+Shift+Enter*.
The material here is based largely on [this post](https://datavizpyr.com/how-to-make-tsne-plot-in-r/) on the excellent (although advertisement-infested) _Data Viz with Python and R_ blog.
You may have to install several of the packages listed below (they are all on CRAN). RStudio may automatically prompt you to do so if you are running a recent version.
@timchurches
timchurches / JMIR-paper-COVOID-Churches-Jorm.Rmd
Last active May 15, 2020 08:04
Source code for JMIR paper: Churches T & Jorm L. "COVOID: A flexible, freely available stochastic individual contact model for exploring COVID-19 intervention and control strategies
---
title: "“COVOID”: A flexible, freely available stochastic individual contact model for exploring COVID-19 intervention and control strategies"
author: "Tim Churches & Louisa Jorm"
date: 2020-03-30
output:
html_document:
self_contained: true
references:
@timchurches
timchurches / JMIR-COVOID-paper.Rmd
Created March 30, 2020 05:46
RMarkdown code for paper submitted to JMIR: COVOID: A flexible, freely available stochastic individual contact model for exploring COVID-19 intervention and control strategies
---
title: COVOID: A flexible, freely available stochastic individual contact model for exploring COVID-19 intervention and control strategies
author: Tim Churches
date: '2020-03-30'
slug: covoid-simulating-covid-19-interventions-with-r
categories:
- R Language
- Guest Post
- Applications
- Medicine
@timchurches
timchurches / _icm.control.seiqhrf.R
Last active April 28, 2022 08:43
COVID-19 extensions to EpiModel v1.8
control.icm <- function(type, nsteps, nsims = 1,
rec.rand = TRUE, quar.rand = TRUE, hosp.rand = TRUE, disch.rand = TRUE,
fat.rand = TRUE, a.rand = TRUE, d.rand = TRUE, initialize.FUN = initialize.icm,
infection.FUN = infection.icm, recovery.FUN = recovery.icm,
departures.FUN = departures.icm, arrivals.FUN = arrivals.icm,
get_prev.FUN = get_prev.icm, verbose = FALSE,
verbose.int = 0, skip.check = FALSE, ncores=1, ...) {
# Get arguments
p <- list()
@timchurches
timchurches / ORCID-second-order-coauthors.Rmd
Created October 23, 2017 04:06
Demo of second-order co-authship graphs using the rOpenSci Rorcid interface to ORCiD
---
title: "Visualising co-authorship networks using ORCID"
author: "Tim Churches"
date: "Mon 23rd October, 2017"
output: html_notebook
---
## Pre-amble
This R notebook re-uses code by Simon Goring described in [this blog entry](https://downwithtime.wordpress.com/2015/02/12/building-your-network-using-orcid-and-ropensci/) and published [here](https://github.com/SimonGoring/ORCiD_Network/blob/master/rorcid_network.R), and combines it with the [visNetwork package](http://datastorm-open.github.io/visNetwork/).
@timchurches
timchurches / README.md
Created October 4, 2017 07:18
Leaflet geolocate test

test of Leaflet

@timchurches
timchurches / README.md
Created October 4, 2017 07:16
Leaflet geolocate test

test of Leaflet