save_ppt: Function for saving a ggplot object, or list of ggplot...

Description Usage Arguments Examples

Description

Function for saving a ggplot object, or list of ggplot objects to a powerpoint document for presentations.

Usage

1
2
3
4
save_ppt(object, template = "../graphs/RD.pptx",
  powerpoint = "../graphs/pptExample.pptx",
  slide_title = "Treatment Difference", offx = 0.75, offy = 0.8,
  width = 8, height = 6)

Arguments

object

ggplot object, or list of ggplot objects

template

a powerpoint presentation, used as a template for creating the output document

powerpoint

filename for saving the powerpoint presentation output

slide_title

the string used for the slide title

offx

x offset from upper left slide corner

offy

y offset from upper left slide corner

width

graphic object width

height

graphic object height

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Create a plot
d.plt <- ggplot(plt.dta) + geom_smooth(aes(x=x, y=yhat, color=inductCRT), se=FALSE, width=4)+
  scale_color_brewer(palette = "Set3")+
  labs(x="", y="")+
  theme(legend.position="none")
  
## End(Not run)

ehrlinger/hviPlotR documentation built on May 16, 2019, 1:19 a.m.