r - select certain elements to build incrementally ioslides


Question: 

I'm building a presentation using ioslides in RStudio. I have a following slide:

```{r, echo=FALSE}
logo<-"logo.jpg"
```

## Playing with R
<IMG style="position:absolute;top:5.5%;right:5%;width:140px;"SRC="`r logo`">

Type in the interactive console:

```{r, eval=FALSE}
x <- 1:10 # "name <- value returns the value invisibly"
```
```{r, eval=FALSE}
getwd()
```

I would like only the code chunks to appear incrementally and text as well as the logo NOT to. I tried to use <div class="incremental"> </div>, but this isn't working. Elements are already placed on the slide when move to it. Using {.build} option makes every element to appear incrementally which I want to avoid.

Any suggestions what way I can select only certain elements on slide to appear incrementally?




1 Answer: 

As you mentioned, you can use {.build} to incrementally build slides (see also http://rmarkdown.rstudio.com/ioslides_presentation_format.html#build_slides). It should be possible to use div elements to group the parts that you want to build together:

```{r, echo=FALSE}
logo<-"logo.jpg"
```

## Playing with R {.build}

<div>
<IMG style="position:absolute;top:5.5%;right:5%;width:140px;"SRC="`r logo`">

Type in the interactive console:
</div>

```{r, eval=FALSE}
x <- 1:10 # "name <- value returns the value invisibly"
```

```{r, eval=FALSE}
getwd()
```
 

More Articles


.net - WPF Databinding Calculated Value sometimes minutes sometimes hours

I have a WPF window with a textbox, using standard WPF Databinding to an object. This all works fine, the issue is this:The user is entering a time estimate, I would like to give the user the option to enter the data in hours or minutes (through a drop down list). I'd like to keep the data in minute

c# - Controlling PowerPoint Slideshow

When a slideshow running in PowerPoint I want to control the movement (Next and Previous) of the slides. Of course it is possible with the > and < button on the keyboard, but is there any way in which I can have a custom application listening to the Next and Previous controls?My custom applicatio

.net - PowerPoint Interop - Start presentation with slide index (not fullscreen) with C#

I'm using the code below to start a presentation in C#: var app = new Microsoft.Office.Interop.PowerPoint.Application(); var pres = app.Presentations; Presentation objPres = pres.Open(@"C:\test.pptx", MsoTriState.msoTrue, MsoTriState.msoTrue); objPres.SlideShowSettings.Run();


charts - How to adjust a GraphViz cluster's margin?

I find graphviz cannot independently adjust a cluster's width margin and height margin.As shown below, the cluster's height margin is obviously less than its width margin.GraphViz provides a parameter margin to adjust a cluster's margin. However, it cannot adjust a cluster's width margin only and ke

presentation - Perspective Video inside image

I want to insert a video file (screen recording of an iPhone) inside the image of an actual iPhone but in a perspective view.I found many video-tutorial but all of them are for corner pinning, which doesn't for the images.So my point is to find a way to make corner pinning for the image and then cli

How to run a Video Presentation on Android in loop?

I have a group of Android Tablets and I need them to only run a Video Presentation as Company Gift Card.The idea of this project is the same of usually Company's Gift PENs, where the Company give to their presentation audience the information in the PEN, but this case we will have on an Android Tabl


r - Line by line analysis and plotting on multiple monitors during presentation

I am preparing a presentation on data analysis and I am provided with a 2-3 monitor and projector head-up. I would like to use one monitor(+projector) for code, one monitor(+projector) for console display and one monitor(+projector) for plots. Monitors are for me, projectors for the audience. I woul

Draw on second Screen using OnGestureDetection and Presentation API in Android?

Currently I have a setup which consists of a Smartphone and a pico-projector connected via MHL. I can send Images to the projector via the Presentation API with no problems. But now I came to the point, where I have to actively manipulate the second screen. I found hardly any information.Basically I

r - Control size of figure in Rstudio presentation

I'm creating a presentation in RStudio (.Rpres). I have a figure that is too large and extends beyond the screen. How can I reduce it?Too big, need to reduce sizeFigure 1========================================================![alt text](fig1)

css - Presenting two paragraphs in HTML side by side

Consider the following problem: you have one text translated into two languages,First line // Unua linioSecond line // Dua linioand there's a need to display them side by side using all available space, make them accessible to search engines as separate paragraphs and allowing separate selection. Th