ioslides降价演示幻灯片中的完整尺寸闪亮应用程序 [英] Full size shiny app in an ioslides markdown presentation slide
问题描述
试图弄清楚如何在ioslides降价促销中使用完整尺寸的闪亮应用程序.我的工作几乎可以正常进行,但这是临时的.我也不确定在较大分辨率的屏幕上显示演示文稿时会重现吗(因为我在div
中使用px
)?
Trying to figure out how to have a full size shiny app in an ioslides markdown. I have something almost working, but it is a bit ad-hoc. I am also not confident it will reproduce when I show the presentation on a larger resolution screen (as I use px
in the 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>
给予:
哪种类型会占用一些较大的边距空间(根据需要),但仍不能覆盖整个幻灯片.
which kind of uses up some of the large margin space (as desired) but still does not cover the whole slide.
推荐答案
尝试使用div<>
中的值.您可以超过100%,还可以以像素为单位设置尺寸,例如<div style="margin-left:-120px; margin-top:-50px; width:900px">
Try playing around with the values in your div<>
. You can go over 100% and also set the size in pixels, e.g. <div style="margin-left:-120px; margin-top:-50px; width:900px">
这篇关于ioslides降价演示幻灯片中的完整尺寸闪亮应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!