1090 search results for "Latex"

scientific notation for R/latex

March 21, 2015
By
scientific notation for R/latex

Motivation Using R within a latex document can be a component of reproducible research, offering (a) some assurance against typographical errors in transcribing results to the latex file and (b) the ability for others to reproduce the results. For example, one might like to explain how close the computed integral of the Witch of Agnesi function 1 2woa <- function(x, a=1) 8 * a^3 / (x^2 +...

Read more »

HOW TO: Package vignettes in plain LaTeX

February 20, 2015
By
HOW TO: Package vignettes in plain LaTeX

Ever wanted to include a plain-LaTeX vignette in your package and have it compiled into a PDF? The R.rsp package provides a four-line solution for this. But, first, what's R.rsp? R.rsp is an R package that implements a compiler for the RSP markup language. RSP can be used to embed dynamic R code in any...

Read more »

Seven 3D Graphs You Can Make In Excel, Python, MATLAB, R, & LaTeX

January 15, 2015
By
Seven 3D Graphs You Can Make In Excel, Python, MATLAB, R, & LaTeX

Plotly’s interactive 3D graphs let you make graphs from (click the links for tutorials): our web app, Excel, Google Docs, Python, MATLAB, and R. Click any image below to go to the full-screen interactive version. Also, news for users with on-premise needs. Plotly On-Premise can be hosted on a private server. Contact us...

Read more »

Four Beautiful Python, R, MATLAB, and Mathematica plots with LaTeX

October 23, 2014
By
Four Beautiful Python, R, MATLAB, and Mathematica plots with LaTeX

LaTeX lets you create lovely, complex mathematical functions from typed text. Plotly will render LaTeX in annotations, labels, and titles. In this post, we’ll show how it works. 1. MATLAB plotting with LaTeX First, here’s an example using Plotly’s MATLAB API. This is a visualization of Bessel Functions of the first kind, solutions for a differential equation....

Read more »

Counting the number of words in a LaTeX file with stringi

May 16, 2014
By
Counting the number of words in a LaTeX file with stringi

In my recent post I promised to present the most interesting features of the stringi package in more detail. Here's one of such jolly features. Many LaTeX users may find it very useful. Loading a text file with encoding auto-detection…Read more ›

Read more »

Stacking Regressions: Latex Tables with R and stargazer

May 3, 2014
By
Stacking Regressions: Latex Tables with R and stargazer

In my paper on the impact of the shale oil and gas boom in the US, I run various instrumental variables specifications. For these, it is nice to stack the regression results one on the other – in particular, to have one row for the IV results, one row for the Reduced Form and maybe

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 »

ShareLaTeX now supports knitr

January 31, 2014
By

ShareLaTeX (click here to register a free account) is a wonderful and reliable on-line editor for writing and compiling LaTeX documents “in the cloud” as well as working together in real-time (imagine Google Docs supporting LaTeX => you get ShareLaTeX).…Read more ›

Read more »

Markdown or LaTeX?

October 19, 2013
By
Markdown or LaTeX?

What happens if you ask for too much power from Markdown? R Markdown is one of the document formats that knitr supports, and it is probably the most popular one. I have been asked many times about the choice between Markdown and LaTeX, so I think I'...

Read more »

Tailor Your Tables with stargazer: New Features for LaTeX and Text Output

July 15, 2013
By
Tailor Your Tables with stargazer: New Features for LaTeX and Text Output

Guest post by Marek Hlavac Since its first introduction on this blog, stargazer, a package for turning R statistical output into beautiful LaTeX and ASCII text tables, has made a great deal of progress. Compared to available alternatives (such as …Read more »

Read more »