Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figures in html_document2 #9

Closed
lgatto opened this issue Aug 2, 2016 · 2 comments
Closed

Figures in html_document2 #9

lgatto opened this issue Aug 2, 2016 · 2 comments

Comments

@lgatto
Copy link

lgatto commented Aug 2, 2016

Are there, or will there by different types of figures (regular, small, wide) in the html style, like there is in latex2?

@aoles
Copy link
Collaborator

aoles commented Aug 3, 2016

Hi Laurent,
the three types of figures known from pdf_document2 can also be used in html_document2. You can specify them with fig.small and fig.wide code chunk options, as in the following example. Soon there will be a proper vignette documenting the features of the new html style.

---
title: "Figures demo"
author: "Andrzej Oleś"
date: '`r doc_date()`'
output:
  BiocStyle::html_document2
---

```{r fig-regular, fig.cap="Regular figure"}
plot(cars)
```

```{r fig-wide, fig.cap="Wide figure. A plot produced by a code chunk with option `fig.wide=TRUE`.", fig.wide=TRUE}
plot(cars)
```

```{r fig-small, fig.cap="Small figure. A plot produced by a code chunk with option `fig.small=TRUE`.", fig.small=TRUE}
plot(cars)
```

@aoles aoles closed this as completed Aug 3, 2016
@lgatto
Copy link
Author

lgatto commented Aug 3, 2016

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants