641 search results for "knitr"

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 »

Updated climate projections by cities

April 2, 2015
By
Updated climate projections by cities

and versions of a simple R Shiny web application showing projected climate trends for various Alaska and western Canada communities is available.

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 »

Getting Data From An Online Source

March 6, 2015
By

Getting Data From One Online SourceRobert NorbergHello world. It’s been a long time since I posted anything here on my blog. I’ve been busy getting my Masters degree in statistical computing and I haven’t had much free time to blog. But I’ve writing R code as much as ever. Now, with graduation approaching, I’m job hunting and I thought it would...

Read more »

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)