6. Create charts
my_barchart <-ms_barchart(data = summ,
x = "Year", y = "Trans(M)",group=NULL)
my_barchart <- chart_settings( x = my_barchart,
dir="vertical", grouping="clustered", gap_width = 50 )
Marksmann Analytics2018-11-08
3rd step
7. Create powerpoint
my_pres <- read_pptx("Presentation4.pptx")%>%
add_slide(layout = "report", master = "Office Theme")%>%
ph_with_text(type = "body", str = paste(round(sum(MobileMoney$`Transactions (millions)`),2),"M"), index = 1) %>%
ph_with_img(type = "body", index = 2, src ="logo.png", height = 1.2, width = 1.2) %>%
ph_with_text(type = "body", str = paste(round(MobileMoney[1,2]/1000,2),"K"), index = 3) %>%
ph_with_text(type = "body", str = paste(round(sum(MobileMoney$`Accounts (millions)`),2),"M"), index = 4) %>%
ph_with_text(type = "body", str = paste(round(sum(MobileMoney$`Value (KSh billions)`),2),"M"), index = 5) %>%
ph_with_text(type = "body", str = "Growth in mobile payments reached 8% last year, and totalled KSh3.6trn ($36bn) in value, according to newly released Central
Bank of Kenya (CBK) data.While steady, the pace of expansion was slower than in 2016 and 2015, when growth rates of 19% and 17% were recorded,
respectively.", index = 6) %>%
ph_hyperlink(type = "body",id_chr = "6",href = "https://oxfordbusinessgroup.com/news/kenyan-mobile-money-grows-amid-decline-traditional-card-payments")
%>%
ph_with_chart(chart = my_barchart, type = "body",index=7) %>%
ph_with_text(type = "ftr", str = "Slide footer") %>%
ph_with_text(type = "dt", str = format(Sys.Date())) %>%
print(my_pres,target= "report.pptx")
Marksmann Analytics2018-11-08
4th step
8. 8,490.92 M203.36 K 2,826.9 M 21,115.02 M
Growth in mobile payments
reached 8% last year, and totaled
KSh3.6trn ($36bn) in value,
according to newly released
Central Bank of Kenya (CBK) data.
While steady, the pace of
expansion was slower than in 2016
and 2015, when growth rates of
19% and 17% were recorded,
respectively.
Year Agents Accs(M) Trans(M) Value(M)
2007 8260 5.05 5.47 16.32
2008 42248 39.11 62.74 166.57
2009 198840 87.17 193.50 473.41
2010 387244 152.27 311.05 732.22
2011 505381 218.55 433.00 1169.15
2012 756828 235.89 577.37 1544.81
2013 1229654 282.55 732.60 1901.56
2014 1445664 311.02 911.34 2371.79
2015 1607424 321.00 1114.18 2816.10
2016 1943637 385.21 1331.01 3355.11
2017 1989624 418.45 1543.17 3638.47
2018 1783829 370.64 1275.49 2929.51
Marksmann Analytics2018-11-08
Agents Accounts Transactions Value
Mobile money analysis
9. Growth in mobile payments reached
8% last year, and totaled KSh3.6trn
($36bn) in value, according to newly
released Central Bank of Kenya (CBK)
data. While steady, the pace of
expansion was slower than in 2016
and 2015, when growth rates of 19%
and 17% were recorded, respectively.
0
200
400
600
800
1000
1200
1400
1600
1800
2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018
TRANS(M)
YEAR
Trans(M)
Trans(M)
Marksmann Analytics2018-11-08
8,490.92 M203.36 K 2,826.9 M 21,115.02 M
Agents Accounts Transactions Value
Mobile money analysis
10. Growth in mobile payments reached
8% last year, and totaled KSh3.6trn
($36bn) in value, according to
newly released Central Bank of
Kenya (CBK) data. While steady, the
pace of expansion was slower than
in 2016 and 2015, when growth
rates of 19% and 17% were
recorded, respectively.
0
200
400
600
800
1000
1200
1400
1600
1800
2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018
Trans(M)
Year
Trans(M)
Trans(M)
Marksmann Analytics2018-11-08
8,490.92 M203.36 K 2,826.9 M 21,115.02 M
Agents Accounts Transactions Value
Mobile money analysis