ioslides降价演示幻灯片中的全尺寸闪亮应用程序

时间:2016-03-29 14:52:38

标签: r shiny rstudio knitr r-markdown

试图找出如何在ioslides降价中使用全尺寸闪亮应用。我有一些近乎工作的东西,但它有点特别。当我在更大的分辨率屏幕上显示演示文稿时(我在px中使用div),我也不相信它会重现?:

---
title: "My Title"
author: "My Name"
date: "29 March 2016"
runtime: shiny
output: 
  ioslides_presentation
---
##  

<div style="margin-left:-50px; margin-top:-50px; width:80%; height:100%">
```{r, echo=FALSE, message=FALSE, fig.width=8}
inputPanel(
  selectInput("n_breaks", label = "Number of bins:",
              choices = c(10, 20, 35, 50), selected = 20),

  sliderInput("bw_adjust", label = "Bandwidth adjustment:",
              min = 0.2, max = 2, value = 1, step = 0.2)
)

renderPlot({
  hist(faithful$eruptions, probability = TRUE, breaks = as.numeric(input$n_breaks),
       xlab = "Duration (minutes)", main = "Geyser eruption duration")

  dens <- density(faithful$eruptions, adjust = input$bw_adjust)
  lines(dens, col = "blue")
})
```
</div>

,并提供:

enter image description here

哪种使用了大部分边距空间(根据需要),但仍然没有覆盖整个幻灯片。

1 个答案:

答案 0 :(得分:3)

尝试使用div<>中的值。您可以超过100%并设置像素大小,例如<div style="margin-left:-120px; margin-top:-50px; width:900px">