• About
    • Cookie Policy
  • Code Snippets
    • Beamer (presentation)
    • Figures
    • Lists
    • Standard classes
    • Tables
  • Consulting
  • LaTeX Installation
  • Posting Questions
  • TeX/LaTeX Resources

texblog

because LaTeX matters

R

Making animations in R for LaTeX

26. February 2018 by slackner 2 Comments

The R package animation has a function saveLatex() which creates a tex document (and compiles it) with the animation created by your R code. It essentially produces the individual image files and a tex file that uses the LaTeX package animate to create the animation in the pdf. Here is an example of an R … [Read more…]

Share this:

  • Twitter
  • Facebook
  • Reddit
  • LinkedIn
  • Skype
  • Email

Like this:

Like Loading...
Posted in: Figure & table, LaTeX, Package, R, Tips & tricks Tagged: animate, animated figure, animation, code, figure, graphics, LaTeX, plot, r

[R/knitr] Automatic bibliography generation with biblatex in RStudio

20. August 2013 by tom 15 Comments

Everybody is talking about making research reproducible. With the integration of knitr in RStudio, reproducible research has been made available to people who are less familiar with the Terminal. All you need is some basics in R and LaTeX and you can generate reports directly from within RStudio. With a few tweaks,  RStudio automatically generates … [Read more…]

Share this:

  • Twitter
  • Facebook
  • Reddit
  • LinkedIn
  • Skype
  • Email

Like this:

Like Loading...
Posted in: Bibtex & biblatex, Introduction, LaTeX, R, Sweave/knitr, Tips & tricks Tagged: biblatex, bibliography, bibtex, knitr, LaTeX, MWE, reproducible research, RStudio

R: Controlling size and placement (subfig) of Sweave-generated figures

1. December 2011 by tom 4 Comments

I’ve been writing quite a bit of R code recently for my gene expression analysis. Also, I use Sweave (manual) which allows embedding R code “chunks” into TeX documents. When the code is being evaluated, the output (code, calculation results, plots, tables, etc.) will automatically integrated into the document as TeX syntax, making it an … [Read more…]

Share this:

  • Twitter
  • Facebook
  • Reddit
  • LinkedIn
  • Skype
  • Email

Like this:

Like Loading...
Posted in: Figure & table, Introduction, LaTeX, Package, R, Sweave/knitr, Tips & tricks Tagged: eps, figure, graphicx, includegraphics, LaTeX, pdf, png, r, subfig, subfloat, Sweave/knitr, SweaveOpts, usepackage

R: Convert table R2LaTeX

2. June 2011 by tom 2 Comments

R and LaTeX work very well together. Let me show you how to generate a LaTeX table from a R variable. First, install the xtable package if it’s not already. Next load the package and create the tex-file with the table variable result. For illustration purposes, I create a matrix with random values. Since you … [Read more…]

Share this:

  • Twitter
  • Facebook
  • Reddit
  • LinkedIn
  • Skype
  • Email

Like this:

Like Loading...
Posted in: Figure & table, LaTeX, Package, R, Tips & tricks Tagged: LaTeX, r, table, xtable




Join 6,531 other subscribers

Consulting

Need help with your thesis or book project? Let’s discuss.

doi2bib




Top Posts & Pages

  • Changing the font size in LaTeX
  • Multi-column and multi-row cells in LaTeX tables
  • Control the width of table columns (tabular) in LaTeX
  • Normal text in math mode
  • Big O and related notations in LaTeX

Tags

addcontentsline array article bibliography Bibtex & biblatex book caption chapter citation cite code color definecolor description documentclass draft enumerate equation fancyhdr figure graphicx hyperref includegraphics item itemize label landscape LaTeX letter listoffigures listoftables math minipage reference renewcommand report section subfigure table tableofcontent tabular text TikZ usepackage xcolor

Copyright © 2021 texblog.

Omega Child WordPress Theme by ThemeHall

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.
%d bloggers like this:
    This site uses cookies: Find out more.