540 search results for "knitr"

devtools 1.8.0

May 11, 2015
By
devtools 1.8.0

Devtools 1.8 is now available on CRAN. Devtools makes it so easy to build a package that it becomes your default way to organise code, data and documentation. You can learn more about developing packages at http://r-pkgs.had.co.nz/. Get the latest version of devtools with: install.packages("devtools") There are three main improvements: More helpers to get you

Read more »

R, Python, MATLAB, & Excel Dashboards & Graphs with D3.js & WebGL

April 29, 2015
By
R, Python, MATLAB, & Excel Dashboards & Graphs with D3.js & WebGL

Web tools like D3.js and WebGL let you make beautiful, interactive 2D and 3D graphs. You can now publish graphs and dashboards with these technologies using Python, R, MATLAB, & Excel. Publishing and sharing is one extra line of code. This post puts you on your way, no downloads or installations required. We’ll start with ggplot2; scroll to see Python and MATLAB plots in 2D and 3D. See our

Read more »

pandoc, markdown and pander

April 23, 2015
By
pandoc, markdown and pander

Pandoc + markdown seem to be a great way of documenting my work. Markdown syntax is very simple and allows to add basic formatting and figures to an otherwise simple text document, without obfuscating the actual text. Then I simply compile the document using the pandoc command: There are some more tricks, of course, and

Read more »

ID3 Classification using data.tree

April 17, 2015
By
ID3 Classification using data.tree

Introduction About this vignette What is ID3? Feature Selection Purity and Entropy Information Gain The ID3 algorithm Pseudo code Implementation in R with the data.tree package Training with data Prediction The prediction method Using the prediction method While preparing this example, I asked my nine-year-old daughter, “Anaïs, imagine you have a basket full of mushrooms. The post

Read more »

Six Ways You Can Make Beautiful Graphs (Like Your Favorite Journalists)

April 8, 2015
By
Six Ways You Can Make Beautiful Graphs (Like Your Favorite Journalists)

This post shows how to make graphs like The Economist, New York Times, Vox, 538, Pew, and Quartz. And you can share–embed your beautiful, interactive graphs in apps, blog posts, and web sites. Read on to learn how. If you like interactive graphs and need to securely collaborate with your team, contact us about Plotly Enterprise.

Read more »

Makefiles and RMarkdown

March 28, 2015
By
Makefiles and RMarkdown

Quite some time ago (October 2013, according to Amazon), I bought a copy of “Reproducible Research with R and RStudio” by Christopher Gandrud. And it was awesome. Since then, I’ve been using knitr and RMarkdown quite a lot. However, until recently, I never bothered with a makefile. At the time, I had assumed that it

Read more »

Short R tutorial: Scraping Javascript Generated Data with R

March 15, 2015
By
Short R tutorial: Scraping Javascript Generated Data with R

When you need to do web scraping, you would normally make use of Hadley Wickham’s rvest package. This package provides an easy to use, out of the box solution to fetch the html code that generates a webpage. However, when the website or webpage makes use of JavaScript to display the data you’re interested in, The post

Read more »

Simple template for scientific manuscripts in R markdown

March 12, 2015
By

The good reasons to write scientific reports and manuscripts in LaTeX or Markdown are: improved document integrity (always), simplicity (not always) and reproducibility (always). I prefer the lightweight Markdown over rich but more complex LaTeX -- I think that lightweight is good for reproducibility. I am also in love with … Continue reading →

Read more »

Creating composite figures with ggplot2 for reproducible research

March 10, 2015
By
Creating composite figures with ggplot2 for reproducible research

So far, I have been preparing composite figures by plotting the data using ggplot2, and then putting the panels together in OmniGraffle or Adobe Illustrator. Of course, every time the data is updated, I would need to go back to the vector editing progr...

Read more »

ropensci/wishlist: A Google Docs-Rmarkdown GUI

March 10, 2015
By
ropensci/wishlist: A Google Docs-Rmarkdown GUI

ropensci/wishlist: A Google Docs-Rmarkdown GUI: Wishlist for rOpenSci tools I’ve just added A Google Docs-Rmarkdown GUI to the rOpenSci ‘wishlist’. (GUI = graphical user interface). Thought I may as well reproduce it below: Summary: Use Google Docs for ease of drafting, aiming to output Rmarkdown to increase the use of reproducible documents Add some special codes to...

Read more »