Skip to content

Instantly share code, notes, and snippets.

View jasonpott's full-sized avatar
🗯️

Jason Pott jasonpott

🗯️
View GitHub Profile
@TrevTV
TrevTV / ArcOn10.md
Last active August 29, 2024 08:46
Guide to installing Arc Browser on Windows 10

NOTICE: Arc now supports Windows 10 officially. This guide is no longer necessary.

As this is not an official way of installing Arc, if you encounter any issues do NOT report them to the developers, they did not intend for people to be running Arc on Windows 10.

@kzktmr
kzktmr / ggradar.R
Created April 4, 2019 05:13
Draw a radar chart with ggplot.
library(tidyverse)
# http://www.cmap.polytechnique.fr/~lepennec/R/Radar/RadarAndParallelPlots.html
coord_radar <- function (theta = "x", start = 0, direction = 1){
theta <- match.arg(theta, c("x", "y"))
r <- if (theta == "x")
"y"
else "x"
ggproto("CordRadar", CoordPolar, theta = theta, r = r, start = start,
direction = sign(direction),
@gadenbuie
gadenbuie / render_toc.R
Last active May 16, 2024 20:09
Generate Manual Table of Contents in (R)Markdown Documents
#' Render Table of Contents
#'
#' A simple function to extract headers from an RMarkdown or Markdown document
#' and build a table of contents. Returns a markdown list with links to the
#' headers using
#' [pandoc header identifiers](http://pandoc.org/MANUAL.html#header-identifiers).
#'
#' WARNING: This function only works with hash-tag headers.
#'
#' Because this function returns only the markdown list, the header for the
@charly06
charly06 / ggrocs.R
Last active March 20, 2023 15:54 — forked from jwaage/ggroc.R
Multiple ROC curves using ggplot2 and pROC
#' Functions plots multiple 'roc' objects into one plot
#' @param rocs
#' A list of 'roc' objects. Every list item has a name.
#' @param breaks
#' A vector of integers representing ticks on the x- and y-axis
#' @param legentTitel
#' A string which is used as legend titel
ggrocs <- function(rocs, breaks = seq(0,1,0.1), legendTitel = "Legend") {
if (length(rocs) == 0) {
stop("No ROC objects available in param rocs.")