Skip to content

Instantly share code, notes, and snippets.

View nbremer's full-sized avatar

Nadieh Bremer nbremer

View GitHub Profile
@nbremer
nbremer / .block
Last active January 1, 2020 08:40
Text on an Arc - Animal Donut Slices - Flipped & Centered Arc Labels
license: mit
@nbremer
nbremer / .block
Last active January 1, 2020 08:40
Text on an Arc - Animate from a Wavy line to an Arc
height: 350
@nbremer
nbremer / .block
Last active January 1, 2020 08:40
Spirograph drawer - Animating solid and dashed lines
height: 900
@nbremer
nbremer / .block
Last active January 1, 2020 08:39
Minimal Regl version of "A Breathing Earth"
license: mit
@nbremer
nbremer / .block
Last active January 1, 2020 08:38
Simplified Baby Names Chart - I
license: mit
@nbremer
nbremer / .block
Last active December 28, 2019 23:33
Canvas CMYK Halftone effect
license: mit
height: 650
@nbremer
nbremer / .block
Last active November 18, 2019 16:43
Step 5 - Voronoi (Distance Limited Tooltip) Scatterplot
height: 550
@nbremer
nbremer / .block
Last active November 18, 2019 16:41
Phone Brand Switching - Chord Diagram - 2014
height: 2700
@nbremer
nbremer / KaplanMeierPlotR.R
Created March 3, 2018 11:10
Creating a Kaplan Meier plot, used in Survival Analysis, using R's ggplot2 package
#' Create a Kaplan-Meier plot using ggplot2
#'
#' @param sfit: a survfit object
#' @param table: logical: Create a table graphic below the K-M plot, indicating at-risk numbers?
#' @param returns logical: if TRUE, return an arrangeGrob object
#' @param xlabs: x-axis label
#' @param ylabs: y-axis label
#' @param ystratalabs: The strata labels. Default = levels(summary(sfit)$strata)
#' @param ystrataname: The legend name. Default = "Strata"
#' @param timeby numeric: control the granularity along the time-axis
@nbremer
nbremer / .block
Last active May 28, 2019 07:00
Radial gradient - Simple example - Sun
height: 300