Introduction

Here is some text. Let's cite \cite{PeerJ:Rcpp}. Want to see a url? Here it is.

Bullets

Here are some bullet points:

References

Use \citet{}, \citep{}, etc as usual.

We default to the jss.bst style. To switch to a different bibliography style, please use biblio-style: style in the YAML header.

Inline R Code

The PNAS sample included a fixed PNG image here, but this document prefers to show the results and embedding of R code.

library(ggplot2)
ggplot(mtcars, aes(wt, mpg)) +
    geom_point(size=3, aes(colour=factor(cyl))) +
    theme(legend.position="none")

Digital Figures

Markdown, Pandoc and LaTeX support .eps and .pdf files.

Figures and Tables should be labelled and referenced in the standard way using the \label{} and \ref{} commands.

The R examples above show how to insert a column-wide figure. To insert a figure wider than one column, please use the \begin{figure*}...\end{figure*} environment.

Typeset Code (But Do Not Run It)

We can also just show code.

xx <- faithful[,"eruptions"]
fit <- density(xx)
plot(fit)

Single column equations

Authors may use 1- or 2-column equations in their article, according to their preference.

To allow an equation to span both columns, options are to use the \begin{figure*}...\end{figure*} environment mentioned above for figures, or to use the \begin{widetext}...\end{widetext} environment as shown in equation \ref{eqn:example} below.

Please note that this option may run into problems with floats and footnotes, as mentioned in the cuted package documentation. In the case of problems with footnotes, it may be possible to correct the situation using commands \footnotemark and \footnotetext.

\begin{equation} \begin{aligned} (x+y)^3&=(x+y)(x+y)^2\ &=(x+y)(x^2+2xy+y^2) \ &=x^3+3x^2y+3xy^3+x^3. \label{eqn:example} \end{aligned} \end{equation}



databrew/databrew documentation built on Feb. 1, 2020, 2:28 p.m.