227 search results for "knitr"

Exporting nice plots in R

February 25, 2013
By
Exporting nice plots in R

It's not always easy getting the right size. The image is CC by Kristina Gill. It's not always easy getting the right size. The image is CC by Kristina Gill. A vital part of statistics is producing nice plots, an area where R is outstanding. The graphical ablility of R...

Read more »

Top 6 reasons you need to be using RStudio

February 25, 2013
By
Top 6 reasons you need to be using RStudio

Rstudio provides you with tools to make your work more productive.New to R? -  check out these resources for getting staRted. RStudio is an awesome tool that can help you do your work better and faster.  In technical terms...

Read more »

Reproducible research with R, Knitr, Pandoc and Word

February 25, 2013
By

Add references and a style sheet

Below I briefly outline why Pandoc is an essential part of my research workflow, and demonstrate how to seamlessly integrate it with a bibliographic system and code written in R to produce high quality word or pdf documents. I also...

Read more »

R Bootcamp Materials!

February 24, 2013
By
R Bootcamp Materials!

Learn about ColoRs in R!Analyze model results with custom functions.Good and Bad GraphicsTo train new employees at the Wisconsin Department of Public Instruction, I have developed a 2-3 day series of training modules on how to get work done in R. These...

Read more »

Workflow w/ reports package

February 24, 2013
By
Workflow w/ reports package

NOTE: THIS IS NOW A PACKAGE SEE THIS LINK FOR DETAILS Let me start with a video for people who just want to see what I’m demo-ing first: I’ve been interested in speeding up workflow lately and spending a lot … Continue reading

Read more »

knitr: Changing chunk options like fig.height programmatically, mid-chunk

February 22, 2013
By

Knitr is a great tool for doing reproducible research. You can produce all kinds of output inside a single knitr chunk, e.g. you can write a loop to produce lots of figures or tables. The only catch is if you want your figures to have differing captions, heights, etc (and usually you do). The standard

Read more »

Model Selection and Multi-Model Inference

February 20, 2013
By
Model Selection and Multi-Model Inference

At D-RUG this week Rosemary Hartman presented a really useful case study in model selection, based on her work on frog habitat. Here is her code run through ‘knitr’. Original code and data are posted here.

(yes, I am just doing this for the flying monkey)

Editor’s note: we’re giving away flying monkey dolls from our...

Read more »

Onepager Now with knitR

February 19, 2013
By

Since at some point I had trouble with a conflict between knitr and the latex package textpos, I used the lesser Sweave in Another Experiment with R and Sweave.  I ran the Sweave2knitr command and discovered that textpos and knitr play well togeth...

Read more »

Contribute to The R Journal with LyX/knitr

February 17, 2013
By
Contribute to The R Journal with LyX/knitr

(This paragraph is pure rant; feel free to skip it) I have been looking forward to the one-column LaTeX style of The R Journal, and it has arrived eventually. Last time I mentioned "it does not make sense to sell the cooked shrimps"; actually there is ...

Read more »

FillIn: a function for filling in missing data in one data frame with info from another

February 15, 2013
By

Sometimes I want to use R to fill in values that are missing in one data frame with values from another. For example, I have data from the World Bank on government deficits. However, there are some country-years with missing data. I gathered data from ...

Read more »