- H. Wickham: Official ggplot2 documentation
- H. Wickham: ggplot2 book
- W. Chang: R graphics cookbook and Cookbook for R
- Z. Ross: Beautiful plotting in R: A ggplot2 cheatsheet
- D. Koffman: Introduction to ggplot2
- R. Saccilotto: Tutorial: ggplot2
- R. Hartman: How to format plots for publication using ggplot2
- G. Williams: Visualising data with ggplot2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data_sets <- c("mtcars", "morley", "rock") | |
shinyServer(function(input, output) { | |
# Drop-down selection box for which data set | |
output$choose_dataset <- renderUI({ | |
selectInput("dataset", "Data set", as.list(data_sets)) | |
}) | |
# Check boxes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13:15 <xQuasar> | HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF | |
| FUCKIN PUSSIES | |
13:15 <xQuasar> | JAVASCRIPT FOR LIFE FAGS | |
13:16 <luite> | hello | |
13:16 <ChongLi> | somebody has a mental illness! | |
13:16 <merijn> | Wow...I suddenly see the error of my ways and feel | |
| compelled to write Node.js! | |
13:16 <genisage> | hi | |
13:16 <luite> | you might be pleased to learn that you can compile | |
| haskell to javascript now |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// vars to keep track of the "mouse" during touchmove | |
var mouseX; | |
var mouseY; | |
// create the custom events so you can dispatch them later | |
var touchover = new Event("touchover"); | |
var touchout = new Event("touchout"); | |
var touchup = new Event("touchup"); | |
var element = document.getElementById("dropTargetDivName"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- flashall.sh | |
+++ (clipboard) | |
@@ -220,15 +220,14 @@ | |
flash-command --alt u-boot-env0 -D "${VARIANT_FILE}" | |
echo "Flashing U-Boot Environment Backup" | |
- flash-command --alt u-boot-env1 -D "${VARIANT_FILE}" -R | |
+ flash-command --alt u-boot-env1 -D "${VARIANT_FILE}" | |
echo "Rebooting to apply partition changes" | |
- dfu-wait no-prompt |
It was not exactly obvious. Here's how to revert a Gist commit!
Checkout the gist like a normal git repo:
# replace the Gist ID with your own
git clone [email protected]:cc13e0fcf2c348cc126f918e4a3917eb.git
Treat it like a normal repo. Edit, force push, etc.
- Eurostat, World Bank and others: https://ikashnitsky.github.io/2017/data-acquisition-two/
- Star Wars data: in dplyr, http://dplyr.tidyverse.org/reference/starwars.html
- Baby names data: babynames package, https://cran.r-project.org/web/packages/babynames/index.html
- Movies data: https://cran.r-project.org/web/packages/ggplot2movies/index.html ggplot2movies package
- Game of Thrones screen time: https://github.com/Preetish/GoT_screen_time
- Open Bike Data: https://github.com/ropensci/bikedata
- Tons of data through 538: https://cran.r-project.org/web/packages/fivethirtyeight/vignettes/fivethirtyeight.html
- Public health data England: fingertipsR, https://cran.r-project.org/web/packages/fingertipsR/
- Financial data via Quandl: https://www.quandl.com/tools/r
- Cyclones: https://github.com/ropensci/rrricanesdat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var page = require('webpage').create(), | |
system = require('system'), | |
address; | |
if (system.args.length === 1) { | |
console.log('Usage: phantomjs url_requests.js http://some.url.com'); | |
phantom.exit(1); | |
} else { | |
address = system.args[1]; | |
var logUrl = function (req) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Security] | |
EAP-Method=PEAP | |
EAP-Identity=anonymous | |
EAP-PEAP-CACert=/etc/ca-certificates/extracted/cadir/DigiCert_Global_Root_CA.pem | |
EAP-PEAP-ServerDomainMask=wifi.service.gov.uk | |
EAP-PEAP-Phase2-Method=MSCHAPV2 | |
EAP-PEAP-Phase2-Identity=<username> | |
EAP-PEAP-Phase2-Password=<password> | |
[Settings] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(bit64) | |
twepoch <- as.integer64('1288834974657') | |
base <- as.integer64(2) | |
datacenter_id_bits <- 5 | |
worker_id_bits <- 5 | |
sequence_id_bits <- 12 | |
max_datacenter_id <- 1 * base^datacenter_id_bits | |
max_worker_id <- 1 * base^worker_id_bits | |
max_sequence_id <- 1 * base^sequence_id_bits |
OlderNewer