cover: Cover page

Description Usage Arguments Details Value Returning graphics of Examples Author(s) See Also Examples

Description

Front and back cover page of the survey.

Usage

1
cover(type = c("front", "back"), content, col, size, loc, time = NULL)

Arguments

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.

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,...)
}

Value

A slide is displayed on the graphic device and no output in the console.

Returning graphics of Examples

cover01.jpeg
cover02.jpeg

Author(s)

Char Leung

See Also

identity,read.write,slide

Examples

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)

surveyeditor documentation built on May 2, 2019, 2:31 p.m.