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 May 8, 2021 05:08
Simple click to change location scatterplot
license: mit
@nbremer
nbremer / .block
Last active April 17, 2018 14:52
Simple animated bar chart
license: mit
@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 January 31, 2018 12:08
Canvas tutorial - Extreme level - Solution
license: mit
@nbremer
nbremer / .block
Last active January 31, 2018 11:31
Canvas tutorial - Medium level - Solution
license: mit
@nbremer
nbremer / .block
Last active January 31, 2018 11:24
Canvas tutorial - Normal level - Solution
license: mit
@nbremer
nbremer / .block
Last active January 31, 2018 12:09
Canvas tutorial - Turn SVG scatterplot into Canvas - Extreme level
license: mit
@nbremer
nbremer / .block
Last active January 31, 2018 12:08
Canvas tutorial - Turn SVG scatterplot into Canvas - Medium level
license: mit
@nbremer
nbremer / .block
Last active January 31, 2018 12:08
Canvas tutorial - Turn SVG scatterplot into Canvas - Normal level
license: mit
@nbremer
nbremer / .block
Last active January 26, 2018 07:41
Film Flowers - Petal Nadieh
license: gpl-3.0