Skip to content

Instantly share code, notes, and snippets.

Avatar

Nadieh Bremer nbremer

View GitHub Profile
@nbremer
nbremer / .block
Last active May 8, 2021
Simple click to change location scatterplot
View .block
license: mit
@nbremer
nbremer / .block
Last active Apr 17, 2018
Simple animated bar chart
View .block
license: mit
@nbremer
nbremer / KaplanMeierPlotR.R
Created Mar 3, 2018
Creating a Kaplan Meier plot, used in Survival Analysis, using R's ggplot2 package
View KaplanMeierPlotR.R
#' 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 Jan 31, 2018
Canvas tutorial - Extreme level - Solution
View .block
license: mit
@nbremer
nbremer / .block
Last active Jan 31, 2018
Canvas tutorial - Medium level - Solution
View .block
license: mit
@nbremer
nbremer / .block
Last active Jan 31, 2018
Canvas tutorial - Normal level - Solution
View .block
license: mit
@nbremer
nbremer / .block
Last active Jan 31, 2018
Canvas tutorial - Turn SVG scatterplot into Canvas - Extreme level
View .block
license: mit
@nbremer
nbremer / .block
Last active Jan 31, 2018
Canvas tutorial - Turn SVG scatterplot into Canvas - Medium level
View .block
license: mit
@nbremer
nbremer / .block
Last active Jan 31, 2018
Canvas tutorial - Turn SVG scatterplot into Canvas - Normal level
View .block
license: mit
@nbremer
nbremer / .block
Last active Jan 26, 2018
Film Flowers - Petal Nadieh
View .block
license: gpl-3.0