Skip to content

Instantly share code, notes, and snippets.

View perthr's full-sized avatar

Greg White perthr

  • Curtin University
  • Perth, Western Australia
View GitHub Profile
@perthr
perthr / ggplot_tutorial.Rmd
Created March 30, 2020 04:02 — forked from emitanaka/ggplot_tutorial.Rmd
ggplot tutorial with kunoichi + ninjutsu xaringan theme
---
title: "ggplot tutorial"
subtitle: "with kunoichi + ninjutsu theme"
author: "<br><br> Emi Tanaka"
date: "<br>2018/09/16"
output:
xaringan::moon_reader:
lib_dir: libs
css: ["kunoichi", "ninjutsu"]
nature:
---
title: "Making Interactive Maps of Public Data in R"
author: "Ryan Rosenberg"
output: html_document
---
<style>
.leaflet {
margin: auto;
}
</style>
@perthr
perthr / cheatsheets.md
Created March 30, 2020 03:51 — forked from FlorianHeigl/cheatsheets.md
Printable Cheat Sheets for Software

A collection of links to useful cheat sheets.

Only what's properly printable can get in. It should also be small enough to fit on a few pages.

Pleae contribute any you remember you've seen and liked. It would be wonderful if we can get these to be something more commonly made.

Search Engines

https://www.alienvault.com/blog-content/GoogleHackingCheatSheet.pdf (nicely put together!)

@perthr
perthr / analysis.Rmd
Created March 30, 2020 03:47 — forked from sebkopf/analysis.Rmd
R markdown tutorial
---
title: "Analysis test"
output: html_document
---
```{r, echo=FALSE, warning=FALSE}
# This code chunk simply makes sure that all the libraries used here are installed, it will not be shown in the report (notice echo = FALSE).
packages <- c("readxl", "knitr", "tidyr", "dplyr", "ggplot2", "plotly")
if ( length(missing_pkgs <- setdiff(packages, rownames(installed.packages()))) > 0) {
message("Installing missing package(s): ", paste(missing_pkgs, collapse = ", "))
@perthr
perthr / sourceGist.r
Last active March 30, 2020 03:37 — forked from jtoll/sourceGist.r
Source a Gist from R
# Example: Easily source a Gist from R using devtools
# 1) install devtools
if (!("devtools" %in% installed.packages()[, 1])) {
install.packages("devtools")
}
# 2) source
library(devtools)
source_gist("https://gist.github.com/perthr/9a37f173fe3f5535c5b61dfb5b5c42bc")