- Spin up VM
- I used Ubuntu 12.04.5 (64bit)
- Add CRAN to apt sources
$ vim /etc/apt/sources.list
- insert the following: $ deb http://cran.fhcrc.org/bin/linux/ubuntu precise/
- Install R $ sudo apt-get update $ sudo apt-get install r-base r-base-dev
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
// based off of: | |
// https://github.com/andyreagan/phantom-crowbar/blob/master/phantom-crowbar.js | |
// https://github.com/NYTimes/svg-crowbar/blob/gh-pages/svg-crowbar-2.js | |
// and for a blog post about converting to png etc client side see | |
// http://willkoehler.net/2014/11/07/client-side-solution-for-downloading-highcharts-charts-as-images.html | |
function crowbar(svg) { | |
var source = '', | |
doctype = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">', | |
prefix = { | |
xmlns: 'http://www.w3.org/2000/xmlns/', |
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
using Eigen::SparseMatrix; | |
template<class Type> | |
SparseMatrix<Type> lcar_prior(size_t I, Type rho) { | |
// LCAR prior is: | |
// pW + (1-p)I | |
// where W[j,k] = | |
// n if j==k | |
// -1 if j~k | |
// 0 otherwise |
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
height: 560 |
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
{ | |
"data": { | |
"record": [ | |
{ | |
"year": "1970", | |
"popTotal": "55928013", | |
"m": { | |
"mTotal": "27167319", | |
"rd": [ | |
{ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.