Jan 10, 2015
D3.js is a JavaScript library for manipulating documents based on data. Biovisualize and christopheviau provide two major list of the gallaries of D3.js websites. The github repository also contains a nice list of gallaries. D3.js is the brainchild of NY Times data visualizer Mike Bostock. Bostock also develops an awesome website for visualizating the gists. The web address is bl.ocks.org. It converts gists to live dynamic pages. For example, Prim’s Algorithm IV is a bl.ocks page developed by Mike. The webpage link for this bl.ocks page is http://bl.ocks.org/mbostock/
76da6085849bff8b6e03
. We need to change the bl.ocks.org
with gist.github.com
to get the gist for that awesome visualization. I have also found that Ramnath also has few bl.ocks. Like to add that Amanda Cox also works with Mike in NY Times in their visualization team. NY Times visualization team creates many superb visualizations in the recent years. Nice listing of d3.js courses is curated by VUDlab.
Jan 20, 2015
Docco is a quick-and-dirty documentation generator, written in Literate CoffeeScript. Yihui showes know-how of r-docco in a vignette of knitr. I am basically interested to get the linear style view. The code is here. We have to install docco first. sudo npm install -g docco
. We can check the version by docco
version
. Steps are: → make a folder → create a RMD file following Yihui Rmd file (first few lines) → in R console set the directory by setwd("")
→ run in console knitr::knit2html(input = "filename.Rmd",
output = "filename.md", template = system.file
("misc", "docco-template.html",
package = "knitr"))
→ go to the terminal
and cd to the docco folder → run docco filename.md
.
Jan 22, 2015
After installing Yosemite, Brew is broken. I have found a solution in stack overflow which works for me. Here are the steps to be done in the terminal:
cd /System/Library/Frameworks/
Ruby.framework/Versions/
sudo ln -s Current 1.8
brew update
sudo unlink 1.8
Jan 23, 2015
Jan 26, 2015
Slidify is a nice tool to make slides using RStudio with various javascript templates. It's created and maintained by Ramnath. Steps are pretty simple: → install 'slidify' by using 'devtools' library → go to the folder where '.rmd' file resides → then in console run slidify('filename.rmd')
[this step is crucial; as it makes the slidify ready html; if you run knit html
you will not get the slidify ready slides] → in console run browseURL('filename.html'). That's all. Here's his slides. I am trying lately using interactive d3 or rcharts in reveal.js. I have found a solution of using d3.js in reveal slides. Another thing I have found is using interactive rCharts in reveal slides. Here's one of my attempt.
Jan 26, 2015
rCharts is used to create, customize and publish interactive javascript visualizations from R using a familiar lattice style plotting interface. It's created and maintained by Ramnath. Here's a nice example. rCharts gallery will be a good start for the beginners. The documentation is very helpful to replicate and push the codes online. To publish in rpubs: r1$publish('Scatterplot', host = ’rpubs’)
. To save html in a folder: r1$save('mychart2.html', standalone = TRUE)
. Here's one of my attempt. Another one: pedestrian fatalities per 100,000 population.
Feb 7, 2015
One can publish their dropbox static html files (linked with other cs and js) in their website. Share
link will not work there. Need to transfer the file in dropbox public
folder. Go to the content folder
. Right click and copy the public link. The rest is easy.
Feb 20, 2015
Pagist is a simple web application that transforms a Gist into a nice webpage. All you have to do is to change like the following.
https://github.com/subasish/TRB-Posters/blob/master/readme.md
http://pagist.info/subasish/TRB-Posters/readme.md
http://board.net/p/sd_new
http://board.pagist.info/sd_new
April 23, 2015
Bibtex2html is an awesome tool to transform .bib to html document. The steps are little bit confusing. The following steps are for Mac OS:
export TMPDIR=.
./bibtex2html filename.bib
April 23, 2015
Heroapp is easy to deploy. We need to open accounts in heroku and github. The rest is easy.
git init
git add .
git commit -m "comment"
heroku create
git push heroku master
November 17, 2015
The only thing need to focus is to creat the path (for mac or windows both)
Sys.getenv("PATH")
Sys.which("pdflatex")
""
Sys.setenv(PATH = paste(Sys.getenv("PATH"), "/usr/local/texlive/2012/bin/x86_64-darwin", sep=.Platform$path.sep))
November 18, 2015
cd DROPBOX ...
git status
git add .
git commit -m "Your comments"
git push
June 22, 2016
python3 -m http.server
June 24, 2016
http://ogre.adc4gis.com