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

Alignment problems in rmarkdown presentation #30

Open
federicou opened this issue Aug 1, 2016 · 1 comment
Open

Alignment problems in rmarkdown presentation #30

federicou opened this issue Aug 1, 2016 · 1 comment

Comments

@federicou
Copy link

I'm using reveal.js presentation library in RStudio.

The following rmarkdown demonstrates a problem related to the horizontal alignment of the parcoords widget.

How to fix that?


---
title: "Par Coordinates"
output: revealjs::revealjs_presentation

---


```{r parcoords, echo=FALSE}
library(parcoords)
data("mtcars")
p <- parcoords(mtcars,autoresize = T,reorderable = T,brushMode = "1D-axes-multi")

htmltools::tagList(p)
@timelyportfolio
Copy link
Owner

I will work on a clean solution. For now, you can override the text-align:center; from revealjs by doing the following.

---
title: "parcoords in reveal"
author: "Kent Russell"
date: "August 1, 2016"
output: revealjs::revealjs_presentation
---
```{r parcoords, echo=FALSE}
library(parcoords)
data("mtcars")
p <- parcoords(mtcars,autoresize = T,reorderable = T,brushMode = "1D-axes-multi")
htmltools::tags$div(
  style="text-align: left;",
  p
)
```

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