Styles

The html_vignette template includes a basic CSS theme. To override this theme you can specify your own CSS in the document metadata as follows:

output: 
  rmarkdown::html_vignette:
    css: mystyles.css

Figures

The figure sizes have been customised so that you can easily put two images side-by-side.

plot(1:10)
plot(10:1)

You can enable figure captions by fig_caption: yes in YAML:

output:
  rmarkdown::html_vignette:
    fig_caption: yes

Then you can use the chunk option fig.cap = "Your figure caption." in knitr.

More Examples

You can write math expressions, e.g. $Y = X\beta + \epsilon$, footnotes^[A footnote here.], and tables, e.g. using knitr::kable().

knitr::kable(head(mtcars, 10))

Also a quote using >:

"He who gives up [code] safety for [code] speed deserves neither." (via)

Here are some of the possible transforms

Numeric Transforms

$$y_{i}^{\lambda} = \cases{\frac{(y_{i} - \lambda_2)^{\lambda_1} - 1}{\lambda_1},& \text{if } \lambda_1 \ne 0 \ \text{ln }(y_{i} - \lambda_2),& \text{if } \lambda_1 = 0}$$

Factor Transforms

Text Transforms

Date Transforms



dermcnor/transformr documentation built on May 15, 2019, 5:04 a.m.