Description Usage Arguments Details Value See Also Examples
Places header and footer text items in outer margin of page and splits the screen appropriately. Can also redraw header and footer.
1 2 3 4 5 6 7 8 9 10 | screenPage(head = NULL, sub = NULL, foot = NULL,
date = FALSE, dateFormat = "%x", time = FALSE,
topLeft = character(0), topRight = character(0),
headFont = par("font.main"), subFont = par("font.sub"),
footFont = par("font"),
cex = 1.001, headCex = 1.5, subCex = 0.85,
footCex = 0.75, topLeftCex = 0.85, topRightCex = 0.85,
footAlign = 0,
leftMargin = 0, rightMargin = leftMargin,
topMargin = 0, bottomMargin = topMargin)
|
head |
character string or strings to appear centered in the top outer margin
of the page. If |
sub |
character string or strings to appear centered just under |
foot |
character string or strings to appear in the bottom outer margin of the page. |
date |
logical: if |
dateFormat |
|
time |
logical: if |
topLeft |
character string or strings to appear at top left corner of the page |
topRight |
character string or strings to appear at top right corner of the page |
headFont |
font to use in writing the main title in |
subFont |
font to use in writing the sub title in |
footFont |
font to use in writing the footnotes in |
cex |
number by which all of the other "cex" arguments are scaled. |
headCex |
number: Character Expansion Factor (cex) for the string(s) in
|
subCex |
number: cex for the string(s) in |
footCex |
number: cex for the string(s) in |
topLeftCex |
number: cex for the string(s) appearing in the top left corner
of the page. The actual cex used for these strings will be
|
topRightCex |
number: cex for the string(s) appearing in the top right corner
of the page, including the time and date stamps.
The actual cex used for these strings will be |
footAlign |
number: justification for the strings in |
leftMargin |
left margin of page in inches. |
rightMargin |
right margin of page in inches. Default is same
as |
topMargin |
top margin of page in inches. |
bottomMargin |
bottom margin of page in inches. Default is same
as |
screenPage
first sets aside space for the margins specified by
topMargin
, bottomMargin
, leftMargin
and
rightMargin
. Then it figures out how much additional space is
needed for the top and bottom outer margin text elements, places them,
and then splits the screen in 3, with screen 3 being the middle part
of the page. The user is then free either to further subdivide screen
3 (using split.screen()
) or to use it as is.
On exit, screen 3 is the active screen.
This function returns a list of all of its arguments, including default values for arguments that were not supplied. The return is invisible if a graphics device is active.
1 2 3 4 | screenPage(head = "Chart 1", date = TRUE, foot = rep(" ", 4),
cex = 0.85, headCex = 1)
## then draw charts, possibly after further subdividing the screen
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.