Top "Knitr" questions

knitr is an R package for dynamic report generation based on the concept of literate programming.

Specify height and width of ggplot graph in Rmarkdown knitr output

I have created a plot with ggplot2 where the x-axis labels are not readable unless the plot is larger than …

r ggplot2 knitr
How to source R Markdown file like `source('myfile.r')`?

I often have a main R Markdown file or knitr LaTeX file where I source some other R file (e.…

r markdown knitr
Adjusting width of tables made with kable() in RMarkdown documents

Is it possible to adjust the width of columns when making tables with the kable() function in knitr? A chunk …

r knitr r-markdown
How to use objects from global environment in Rstudio Markdown

I've seen similar questions on Stack Overflow but virtually no conclusive answers, and certainly no answer that worked for me. …

r rstudio knitr
How to import local image using knitr for markdown

I have an externally created png image in a local directory that I'd like to import to a report using …

html image markdown figure knitr
knitr/rmarkdown/Latex: How to cross-reference figures and tables?

I'm trying to cross-reference figures and tables in a PDF produced with knitr/rmarkdown. There are some questions on SO …

r latex knitr r-markdown cross-reference
Align multiple tables side by side

The following code produces 2 tables on top of each other. How would I set it to have them aligned side …

r latex knitr r-markdown
Automatically adjust LaTeX table width to fit pdf using knitr and Rstudio

Using Rstudio and knitr to produce latex-tables in pdf, how do I make wide tables fit the page? I'm basically …

r latex rstudio knitr
Package inputenc Error: Unicode char \u8 in RStudio

In RStudio, when i go for convert my Markdown file to PDF then it gives me the error: output file: …

r pdf markdown rstudio knitr
Control alignment of two side-by-side plots in knitr

I cannot figure out how to arrange two side-by-side plots as explained in the knitr graphics manual page 2 (http://yihui.…

r knitr r-markdown