Description Usage Arguments Details Value Returning graphics of Examples Author(s) See Also Examples
Front and back cover page of the survey.
1 |
type |
To indicate if the cover is a front of a back cover page. If back page, time must be set. See Details for other differences. |
content |
Texts to be displayed in the slide. It can be a vector c( ) containing multiple items. |
col |
The colour of content hence its length must be the same as that of content. |
size |
The font size of content hence its length must be the same as that of content. |
loc |
The vertical location of content. Must be a number within the interval [0,100]. Its length must be the same as that of content. |
time |
The time (in seconds) that the slide is displayed for. Works only type="back". See Details. |
If it is a front cover page (i.e. type="front") a green button is shown in the bottom of the slide to allow proceeding to the next slide.
The reason that time only works for type="back" is that the back cover page closes in a few seconds so the entire survey program starts again for the next subject if the command repeat{} is used. For example,
repeat{cover(type="front",...)
identity(...)
slide(...)
slide(...)
...
read.write(...)
cover(type="back",time=10,...)
}
A slide is displayed on the graphic device and no output in the console.
Char Leung
1 2 3 4 5 6 | ## Not run: cover(type="front",content=c("Inflation expectation experiment","Please wait
for further instructions"),col=c("blue","black"),size=c(2.5,1.5),loc=c(60,30))
## End(Not run)
## Not run: cover(type="back",content="This is the end of the survey\nThank you for your
participation",col="black",size=2,loc=70,time=3)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.