507 search results for "Knitr"

knitr: nice alternative for Sweave

December 17, 2011
By

I recently discovered knitr for dynamic report generation in R. It seems like a very powerful alternative to Sweave. Particularly, I am interested in png graphic device support (it supports more than 20 graphic devices) and R code formatting.Check it o...

Read more »

knitr: Elegant, flexible and fast dynamic report generation with R

December 1, 2011
By

The world has changed. You can feel it on GitHub. You can smell it on Google+. The knitr package, as an alternative tool to Sweave, has features that you have been longing for, and features that you might have never imagined. Thumb through the PDF manu...

Read more »

knitr: Elegant, flexible and fast dynamic report generation with R

December 1, 2011
By

The world has changed. You can feel it on GitHub. You can smell it on Google+. For those who have been struggling with Sweave, here comes the knitr package. It has features that you have been longing for, and features that you might have never imagined. Thumb through the PDF manual to see some of

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 »