-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/cleanup-and-refactor'
- Loading branch information
Showing
2 changed files
with
214 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
--- | ||
title: "Discovering regulated Metabolite Families" | ||
author: | ||
- name: Khabat Vahabi | ||
affiliation: Leibniz Institute of Plant Biochemistry | ||
- name: Steffen Neumann | ||
affiliation: Second Author's Affiliation | ||
email: [email protected] | ||
package: MetFamily | ||
output: | ||
BiocStyle::html_document | ||
abstract: | | ||
Description of your vignette | ||
vignette: | | ||
%\VignetteIndexEntry{Vignette Title} | ||
%\VignetteEngine{knitr::rmarkdown} | ||
%\VignetteEncoding{UTF-8} | ||
--- | ||
|
||
# Getting started | ||
|
||
To enable the _Bioconductor_ style in your R Markdown vignette you need to include the following in the `DESCRIPTION` file: | ||
|
||
VignetteBuilder: knitr | ||
Suggests: BiocStyle, knitr, rmarkdown | ||
|
||
|
||
# Style macros | ||
|
||
_BiocStyle_ introduces the following macros for referring to _R_ packages: | ||
|
||
* `r Biocpkg("IRanges")`, for _Bioconductor_ software, annotation and experiment data packages, | ||
* `r CRANpkg("data.table")`, for _R_ packages available on CRAN, | ||
* `r Githubpkg("rstudio/rmarkdown")`, for _R_ packages available on GitHub, | ||
* `r Rpackage("MyPkg")`, for _R_ packages that are _not_ available on _Bioconductor_, CRAN or GitHub. | ||
|
||
|
||
# Figures | ||
|
||
Assign captions to figures in the code chunk option `fig.cap` to automatically number them, and to be able to reference them, see Figure \@ref(fig:plot). The figure label is generated from the code chunk label by prefixing it with `fig:`. | ||
|
||
```{r plot, fig.cap="Regular figure. The first sentence of the figure caption is automatically emphasized to serve as figure title.", echo=FALSE} | ||
plot(cars) | ||
``` | ||
|
||
Small and wide figures can be specified by `fig.small` and `fig.wide` code chunk options. | ||
|
||
```{r small, fig.cap="Small figure. A plot produced by a code chunk with option `fig.small = TRUE`.", fig.small=TRUE, echo=FALSE} | ||
plot(cars) | ||
``` | ||
```{r wide, fig.cap="Wide figure. A plot produced by a code chunk with option `fig.wide = TRUE`.", fig.wide=TRUE, echo=FALSE} | ||
plot(cars) | ||
``` | ||
|
||
|
||
# Equations | ||
|
||
To number and reference equations, put them in equation environments and assign labels to them, see Equation \@ref(eq:binom). | ||
|
||
\begin{equation} | ||
f\left(k\right) = \binom{n}{k} p^k\left(1-p\right)^{n-k} | ||
(\#eq:binom) | ||
\end{equation} | ||
|
||
|
||
# Tables | ||
|
||
Like figures, tables with captions will also be numbered and can be referenced, see Table \@ref(tab:table). | ||
|
||
Fruit | Price | ||
------- | ----- | ||
bananas | 1.2 | ||
apples | 1.0 | ||
oranges | 2.5 | ||
|
||
: (\#tab:table) A simple table. With caption. | ||
|
||
|
||
# Cross-references | ||
|
||
Apart from referencing figures (Section \@ref(figures)), tables (Section \@ref(tables)), and equations (Section \@ref(equations)), you can also use the same syntax to refer to sections by their default labels generated by pandoc. | ||
|
||
|
||
# Side notes | ||
|
||
Footnotes are displayed as side notes on the right margin^[this is a side note entered as a footnote], which has the advantage that they appear close to the place where they are defined. | ||
|
||
|
||
# Session info {.unnumbered} | ||
|
||
```{r sessionInfo, echo=FALSE} | ||
sessionInfo() | ||
``` |