Alignment problems in rmarkdown presentation
federicou opened this issue · 1 comments
federicou commented
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 commented
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 ) ```