One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| --- | |
| title: "ggiraph with bar chart tooltips" | |
| author: "hrbrmstr" | |
| date: "`r Sys.Date()`" | |
| output: | |
| html_document: | |
| css: ggiraphe.css | |
| --- | |
| The full `Rmd` and `css` files for this are in <a target=_blank href="https://gist.github.com/hrbrmstr/5ee3123f7161580d4cdf">this gist</a>. |
| ggroc <- function(roc, showAUC = TRUE, interval = 0.2, breaks = seq(0, 1, interval)){ | |
| require(pROC) | |
| if(class(roc) != "roc") | |
| simpleError("Please provide roc object from pROC package") | |
| plotx <- rev(roc$specificities) | |
| ploty <- rev(roc$sensitivities) | |
| ggplot(NULL, aes(x = plotx, y = ploty)) + | |
| geom_segment(aes(x = 0, y = 1, xend = 1,yend = 0), alpha = 0.5) + | |
| geom_step() + |
(Sorted by # of people who voted for each one)
| FILE SPACING: | |
| # double space a file | |
| sed G | |
| # double space a file which already has blank lines in it. Output file | |
| # should contain no more than one blank line between lines of text. | |
| sed '/^$/d;G' |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
| #' 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 |
| #!/bin/bash | |
| # SCRIPT USAGE: | |
| # bash plink_pruning_prep.sh filtered_snp_file.vcf | |
| # REQUIREMENTS: | |
| # This script uses several software packages, all available from [Bioconda channel](https://bioconda.github.io/). | |
| # They can be installed with simple: | |
| # conda install tabix bcftools plink |
| # print everything after loop is finished | |
| for (i in 0:101) { | |
| print(i) | |
| Sys.sleep(0.01) | |
| } | |
| # simplist way to print within loop | |
| for (i in 0:101) { | |
| print(i) | |
| Sys.sleep(0.01) |
| import papermill as pm | |
| pm.execute_notebook('weather_forecast_using_pyowm.ipynb', | |
| 'weather_forecast_using_pyowm_output.ipynb', | |
| parameters={'city':'Sao Paulo,BR'}, | |
| kernel_name='papermill-tutorial') |