PPT.AddTextBox | R Documentation |
Add a textbox to a slide. YOu can easily position it and modify a limited number of aspects of its appearance (color, bullet points, etc.)
PPT.AddTextBox(
ppt,
txt,
width = 0.9,
height = 0.9,
x = "center",
y = "center",
xy.format = "points",
x.offset = 0,
y.offset = 0,
offset.format = "points",
x.text.align = "center",
bullet.points = "none",
bullet.points.color = 0,
font.size = 16,
font.color = "black",
font.bold = FALSE,
font.italic = FALSE,
font.name = NA,
fill.color = NA,
border.color = NA,
newslide = FALSE,
maxscale = 1,
autosize = TRUE
)
ppt |
The ppt object as used in R2PPT. |
txt |
Text to put into the textbox. A vector with length greater 1 is collapsed using linebreak characters. |
width |
Width of graphic. For values smaller than |
height |
Height of graphic. For values smaller than |
x |
Horizontal placement of the textbox. Either a string
( |
y |
Vertical placenment of the textbox. Either a string ( |
xy.format |
The numeric x and y input will be interpreted either as
|
x.offset |
Additional horizontal offset in pixel. Used for finetuning position on slide. |
y.offset |
Additional horizontal offset in pixel or as percent (see . Used for finetuning position on slide. |
offset.format |
The offset will be interpreted either as |
x.text.align |
Horizontal alignment of text ( |
bullet.points |
Whether to treat each new line and vector element as a
bullet point ( |
bullet.points.color |
Color of bullet points either as hex value or color name. |
font.size |
Text size (default 16). |
font.color |
Color of text either as hex value or color name. |
font.bold |
Bold text (default |
font.italic |
Italic text (default |
font.name |
Name of font (default |
fill.color |
Background color either as hex value or color name. |
border.color |
Border line color either as hex value or color name. |
newslide |
Logical (default is |
maxscale |
Threshold below which values are interpreted as proportional
scaling factors for the |
Mark Heckmann
## Not run:
# add textbox to middle of slide
p <- PPT.Init(visible=T, method = "RDCOMClient")
p <- PPT.AddBlankSlide(p)
txt = c("Line 1", "Line 2", "Line 3")
p <- PPT.AddTextBox(p, txt)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.