539 search results for "Knitr"

Notebooks, knitr and the Language-Markdown View Source Option…

June 8, 2015
By
Notebooks, knitr and the Language-Markdown View Source Option…

One of the foundational principles of the web, though I suspect ever fewer people know it, is that you can “View Source” on a web page to see what bits of HTML, Javascript and CSS are used to create it. In the WordPress editor I’m currently writing in, I’m using a Text view that lets

Read more »

Knitr with Bio7

April 16, 2015
By

16.04.2015 In Bio7 it is possible to write a documentation in knitr. A simple visual and textual HTML editor (based on JavaFX) and an embedded Latex editor (based on TeXclipse) helps in the creation of a *.html or *.pdf documentation. For the *.pdf creation a TeX environment has to be available (Windows e.g. MiKTeX). Overview

Read more »

Write an R Journal article with knitr

April 11, 2015
By
Write an R Journal article with knitr

R Journal The R Journal publishs peer-reviewed short to medium length articles covering topics that might be of interest to users or developers of R. It is a welcome platform to spread word of new packages. As most academic journals, it has strict guidelines regarding the format of submitted articles. Traditionally, these have been provided with a The post

Read more »

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 23, 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 »

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 »

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 »

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 »