625 search results for "KnitR"

Iteratively Populating Templated Sentences With Inline R in knitr/Rmd

March 29, 2015
By
Iteratively Populating Templated Sentences With Inline R in knitr/Rmd

As part of the Wrangling F1 Data With R project, I want to be able to generate sentences iteratively from a templated base. The following recipe works for sentences included in an external file: What I’d really like to be able to do is put the Rmd template into a chunk something like this…: and

Read more »

Knitr’s best hidden gem: spin

March 24, 2015
By

Stop knitting & start spinning - spin can help you write reports much faster and avoid repeating yourself - Anyone who loves the idea of dynamic report generation with R is probably a big fan of knitr and its flagship function - knit. But not many people seem to know about knit’s awesome cousin -...

Read more »

Blogging with Jekyll and R Markdown using knitr

January 24, 2015
By

use knitr One way to blog using R and Jekyll is to copy and paste every code chunk, output and plot into a plain vanilla markdown file by hand. This is cumbersome, especially for plots which need to be saved as images and embedded. I tried this for my first few posts. It was clunky. A more seamless...

Read more »

Plot with ggplot2 and plotly within knitr reports

December 30, 2014
By
Plot with ggplot2 and plotly within knitr reports

Plotly is a platform for making, editing, and sharing graphs. If you are used to making plots with ggplot2, you can call ggplotly() to make your plots interactive, web-based, and collaborative. For example, see plot.ly/~marianne2/166, shown below. Notice the hover text! The “plotly” R package lets you use plotly with R. Want to...

Read more »

Pander tables inside of knitr

September 18, 2014
By
Pander tables inside of knitr

Hadley Wickham opened my eyes that calling pander to generate nifty markdown tables inside of knitr requires a special chunk option, which bothersome extra step might be saved by updating pander a bit. So it's done.In a nutshell, whenever you...

Read more »

Using showtext in knitr

July 20, 2014
By
Using showtext in knitr

Thanks to the issue report by yufree and Yihui’s kind work, from version 1.6.10 (development version), knitr starts to support using showtext to change fonts in R plots. To demonstrate its usage, this document itself serves as an example. (Rmd source code) We first do some setup work, mainly about setting options that control the appearance of the plots. Notice that if...

Read more »

Floating table of contents for your html reports using knitr

April 27, 2014
By

If you love knitr and rstudio and use them to produce long reports, you probably know that you can produce a table of contents in your html (and pdf) documents. In the newer rstudio (Version 0.98.801 or later) you do it by requesting a toc in the doc header, something like this. title: "cssTest" output:

Read more »

Introduction to dynamic document and knitr

April 2, 2014
By

Today I gave a presentation for GSO(Graduate Student Organization) of our department, mainly about the idea of dynamic document and its implementation using knitr. Here are the slides I showed in the talk, written with Markdown and knitr.

Read more »

Brief introduction on Sweave and Knitr for reproducible research

February 24, 2014
By
Brief introduction on Sweave and Knitr for reproducible research

A few weeks ago I gave a presentation on using Sweave and Knitr under the guise of promoting reproducible research. I humbly offer this presentation to the blog with full knowledge that there are already loads of tutorials available online. This presentation is specific and slightly biased towards Windows OS, so it probably has limited

Read more »

Using the LaTeX listings package to style R PDF reports with knitr and pandoc

February 15, 2014
By
Using the LaTeX listings package to style R PDF reports with knitr and pandoc

knitr is a an R package that allows you to include R code in markdown or LaTeX source files, and have the code and/or its output included in the resulting html or pdf files. RStudio provides good support for this, so if you want to try it out that’s a good place to start. This

Read more »

Sponsors

Mango solutions



RStudio homepage



Zero Inflated Models and Generalized Linear Mixed Models with R

Quantide: statistical consulting and training

datasociety

http://www.eoda.de





ODSC

ODSC

CRC R books series





Six Sigma Online Training









Contact us if you wish to help support R-bloggers, and place your banner here.

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)