Skip to content

Instantly share code, notes, and snippets.

View AnthonyEbert's full-sized avatar

Anthony Ebert "Ace" AnthonyEbert

View GitHub Profile
@AnthonyEbert
AnthonyEbert / R2PBS.md
Created January 2, 2019 00:52 — forked from brfitzpatrick/R2PBS.md
How to submit R code to a Portable Batch System (PBS) managed HPC resource (e.g. QUT's High Performance Computing Facility `Lyra').

How to submit R code to a Portable Batch System (PBS) managed High Performance Computing (HPC) Facility (e.g. QUT's HPC Facility 'Lyra').

You will need:

  1. An account with the relevant HPC facility (QUT staff and HDR students can request access to the QUT facility here),
  2. the R Script (.R file) you want to run,
  3. a Job Script (.sub file) that tells Lyra how to run your R script and,
  4. a file containing any data your R Script needs to run.

Note: These instructions work on a system running Debian (GNU + Linux) with the Gnome Desktop Environment.

@AnthonyEbert
AnthonyEbert / multi_smooth_ggpairs.R
Last active October 18, 2017 09:17 — forked from padamson/multi_smooth_ggpairs.R
Add true value annotation to empirical posterior plots
# For empirical posterior plots. Put the true values, repeated at the bottom two rows of the data.
require(datasets)
data("swiss")
require(GGally)
require(ggplot2)
input_swiss <- rbind(swiss[,1:4], c(75, 60, 10, 15), c(75, 60, 10, 15))
my_low <- function(data, mapping, ...){