Dice Combination | Proportion |
---|---|
14, 13, 12, 11, 10, 9 | 0.0015 |
16, 15, 14, 13, 12, 11 | 0.0015 |
15, 14, 13, 12, 10, 9 | 0.0014 |
16, 15, 14, 13, 11, 10 | 0.0014 |
14, 13, 13, 12, 11, 10 | 0.0013 |
15, 14, 13, 12, 12, 11 | 0.0013 |
This file contains hidden or 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(base64) # install.packages('base64') | |
pngfile <- tempfile() | |
png(pngfile,width=600,height=600,pointsize=12) # adjust as needed | |
# Plotting code... | |
dev.off() | |
# Prints the HTML code to console | |
cat(img(pngfile)) | |
# Copy and paste the whole output into your HTML source to embed the image |
This file contains hidden or 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(shiny) | |
library(ggplot2) | |
# Download DataTables JS file and TableTools full package from http://datatables.net/download/ | |
# Change the paths appropriately: | |
addResourcePath('datatables','/Users/yourusername/Downloads/DataTables-1.9.4/media') | |
addResourcePath('tabletools','/Users/yourusername/Downloads/TableTools-2.1.5/media') | |
runApp(list( | |
ui = basicPage( |
This file contains hidden or 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
# This file contains two functions: | |
# - combine.samples (used by par.trace.samples) | |
# - par.trace.samples | |
# and an example at the bottom. | |
## Author: Mikhail Popov (mikhail [at] mpopov.com) | |
# install.packages("rjags") # JAGS must be installed on system | |
# install.packages("doMC") # Unix only |
This file contains hidden or 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
notify <- function(msg="Operation complete") { | |
in.osx <- (Sys.info()['sysname'] == "Darwin") | |
in.rstudio <- (Sys.getenv("RSTUDIO") == "1") | |
in.rgui <- (Sys.getenv("R_GUI_APP_REVISION") != "") | |
if (in.rstudio) { # hack to see if running in RStudio | |
title <- "RStudio" | |
sender <- activate <- "org.rstudio.RStudio" | |
} |
NewerOlder