{"id":157292,"date":"2022-09-15T09:28:00","date_gmt":"2022-09-15T13:28:00","guid":{"rendered":"https:\/\/ibkrcampus.com\/?p=157292"},"modified":"2022-11-21T09:58:12","modified_gmt":"2022-11-21T14:58:12","slug":"how-to-create-powerpoint-reports-with-r","status":"publish","type":"post","link":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-to-create-powerpoint-reports-with-r\/","title":{"rendered":"How to Create PowerPoint Reports with R"},"content":{"rendered":"\n<p>In my last post, we discussed how to&nbsp;<a href=\"https:\/\/theautomatic.net\/2020\/07\/21\/how-to-read-and-create-word-documents-in-r\/\">create and read Word files with R\u2019s officer package<\/a>. This article will expand on&nbsp;<strong>officer<\/strong>&nbsp;by showing how we can use it to create PowerPoint reports.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-getting-started\"><strong>Getting started<\/strong><\/h2>\n\n\n\n<p>Let\u2019s get started by loading&nbsp;<strong>officer<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>library(officer)<\/code><\/pre>\n\n\n\n<p>Next, we\u2019ll create a PowerPoint object in R using the&nbsp;<strong>read_pptx<\/strong>&nbsp;function.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pres &lt;- read_pptx()<\/code><\/pre>\n\n\n\n<p>To add a slide, we use the&nbsp;<strong>add_slide<\/strong>&nbsp;function. The first slide we\u2019ll create is the title slide. We specify the type of slide in the&nbsp;<em>layout<\/em>&nbsp;parameter. There\u2019s several other possibilities here including \u201cTitle and Content\u201d, \u201cBlank\u201d, \u201cTitle Only\u201d, \u201cComparison\u201d, \u201cTwo Content\u201d, and \u201cSection Header\u201d.<\/p>\n\n\n\n<p>Secondly, we use&nbsp;<strong>ph_with<\/strong>&nbsp;to add the title text.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># add title slide\npres &lt;- add_slide(pres, layout = \"Title Only\", master = \"Office Theme\")\n \n# add Title text\npres &lt;- ph_with(pres, value = \"My first presentation\", location = ph_location_type(type = \"title\"))\n<\/code><\/pre>\n\n\n\n<p>Next, let\u2019s add another slide. This time we\u2019ll have a title and content.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pres &lt;- add_slide(pres, layout = \"Title and Content\", master = \"Office Theme\")\npres &lt;- ph_with(pres, value = \"This is the second slide\", location = ph_location_type(type = \"title\"))\npres &lt;- ph_with(pres, value = c(\"First line\", \"Second Line\", \"Third line\"), location = ph_location_type(type = \"body\"))\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"640\" height=\"238\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/create-powerpoint-in-r-the-automatic-net.jpg\" alt=\"\" class=\"wp-image-157306 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/create-powerpoint-in-r-the-automatic-net.jpg 640w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/create-powerpoint-in-r-the-automatic-net-300x112.jpg 300w\" data-sizes=\"(max-width: 640px) 100vw, 640px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 640px; aspect-ratio: 640\/238;\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How to add tables<\/strong><\/h2>\n\n\n\n<p>Now, what if we want to add a table? Let\u2019s create a sample data frame and add it to a new slide. Again, we\u2019ll use&nbsp;<strong>ph_with<\/strong>&nbsp;to add the content (data frame in this case) to the new slide. This time we just need to set the&nbsp;<em>value<\/em>&nbsp;parameter equal to our data frame object.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># create sample data frame\nframe &lt;- data.frame(a = 1:10, b = 11:20, c = 21:30)\n \n# create slide to hold table\npres &lt;- add_slide(pres, layout = \"Title and Content\", master = \"Office Theme\")\npres &lt;- ph_with(pres, value = \"Table Example\", location = ph_location_type(type = \"title\"))\n \n# add data frame to PowerPoint slide\npres &lt;- ph_with(pres, value = frame, location = ph_location_type(type = \"body\"))<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"640\" height=\"470\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/officer-package-add-table-to-slide-the-automatic-net.jpg\" alt=\"\" class=\"wp-image-157310 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/officer-package-add-table-to-slide-the-automatic-net.jpg 640w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/officer-package-add-table-to-slide-the-automatic-net-300x220.jpg 300w\" data-sizes=\"(max-width: 640px) 100vw, 640px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 640px; aspect-ratio: 640\/470;\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Adding plots and images<\/strong><\/h2>\n\n\n\n<p>Plots and images can also be added to the PowerPoint document. In the code below we add a&nbsp;<strong>ggplot<\/strong>&nbsp;object to a new slide.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>library(ggplot2)\npres &lt;- add_slide(pres, layout = \"Blank\", master = \"Office Theme\")\nsample_plot &lt;- ggplot(data = frame) + geom_point(mapping = aes(1:10, a),\n                                      size = 3) + theme_minimal()\n \npres &lt;- ph_with(pres, value = sample_plot, location = ph_location_fullsize())<\/code><\/pre>\n\n\n\n<p>External images can be loaded like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pres &lt;- add_slide(pres)\npres &lt;- ph_with(pres, external_img(\"sample_image.png\", width = 2, height = 3),\n               location = ph_location_type(type = \"body\"), use_loc_size = FALSE )\n<\/code><\/pre>\n\n\n\n<p>Note how in this case, we wrap the name of the image file along with the width and height sizes we want inside the&nbsp;<strong>external_img<\/strong>&nbsp;function.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Adjusting font and colors<\/strong><\/h2>\n\n\n\n<p>Font sizes and colors can be adjusted using the&nbsp;<strong>fp_text<\/strong>&nbsp;function. In the example below we created two paragraphs \u2013 the first one is bold, while the second one is green.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>library(magrittr)\n \n# create bold text object with size 24 font\nbold &lt;- fp_text(font.size = 24, bold = TRUE)\n \n# create green Arial text object with size 24 font\ngreen &lt;- fp_text(font.size = 24, color = \"green\", font.family = \"Arial\")\n \n# create block list of two paragraphs with the above font specifics\npars &lt;- block_list(fpar(ftext(\"This line is bold\", bold)), fpar(ftext(\"This line is green and Arial\", green)))\n \n# add slide with paragraphs\npres &lt;- add_slide(pres, layout = \"Title and Content\", master = \"Office Theme\") %&gt;% ph_with(pars, location = ph_location_type(type = \"body\")) \n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"600\" height=\"155\" data-src=\"\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/officer-package-adjust-font-the-automatic-net.jpg\" alt=\"\" class=\"wp-image-157316 lazyload\" data-srcset=\"https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/officer-package-adjust-font-the-automatic-net.jpg 600w, https:\/\/ibkrcampus.com\/campus\/wp-content\/uploads\/sites\/2\/2022\/09\/officer-package-adjust-font-the-automatic-net-300x78.jpg 300w\" data-sizes=\"(max-width: 600px) 100vw, 600px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 600px; aspect-ratio: 600\/155;\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Adding hyperlinks<\/strong><\/h2>\n\n\n\n<p>Lastly, we can add hyperlinks to our presentation using the&nbsp;<strong>ph_hyperlink<\/strong>&nbsp;function. Below, we create a hyperlink with the text \u201cClick Here\u201d that points to&nbsp;<a href=\"https:\/\/theautomatic.net\/\">https:\/\/theautomatic.net<\/a>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pres &lt;- add_slide(pres)\n \npres &lt;- ph_with(pres, \"Click Here\", location = ph_location_type(type = \"body\"))\npres &lt;- ph_hyperlink(pres, href = \"https:\/\/theautomatic.net\")\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h2>\n\n\n\n<p>That\u2019s all for now! If you liked this post, please&nbsp;<a>follow my blog on Twitter<\/a>&nbsp;or&nbsp;<a href=\"https:\/\/www.youtube.com\/channel\/UC1vVs9tqaMmj5pmXABWJoDw\">subscribe to my new YouTube channel<\/a>.<\/p>\n\n\n\n<p><em>Visit <a href=\"https:\/\/theautomatic.net\/2020\/07\/28\/how-to-create-powerpoint-reports-with-r\/\">TheAutomatic.net<\/a> for additional insight on this topic. <\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article will expand on\u00a0officer\u00a0by showing how we can use it to create PowerPoint reports.<\/p>\n","protected":false},"author":388,"featured_media":80184,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[339,343,338,341,352,344,342],"tags":[806,2533,865,487,6591],"contributors-categories":[13695],"class_list":{"0":"post-157292","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-data-science","8":"category-programing-languages","9":"category-ibkr-quant-news","10":"category-quant-development","11":"category-quant-north-america","12":"category-quant-regions","13":"category-r-development","14":"tag-data-science","15":"tag-ggplot2","16":"tag-github","17":"tag-r","18":"tag-rstats","19":"contributors-categories-theautomatic-net"},"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.9 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Create PowerPoint Reports with R | IBKR Quant<\/title>\n<meta name=\"description\" content=\"This article will expand on\u00a0officer\u00a0by showing how we can use it to create PowerPoint reports.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/157292\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create PowerPoint Reports with R | IBKR Quant Blog\" \/>\n<meta property=\"og:description\" content=\"This article will expand on\u00a0officer\u00a0by showing how we can use it to create PowerPoint reports.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-to-create-powerpoint-reports-with-r\/\" \/>\n<meta property=\"og:site_name\" content=\"IBKR Campus US\" \/>\n<meta property=\"article:published_time\" content=\"2022-09-15T13:28:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-11-21T14:58:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/03\/R-programing.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"550\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Andrew Treadway\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Andrew Treadway\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t    \"@context\": \"https:\\\/\\\/schema.org\",\n\t    \"@graph\": [\n\t        {\n\t            \"@type\": \"NewsArticle\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/how-to-create-powerpoint-reports-with-r\\\/#article\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/how-to-create-powerpoint-reports-with-r\\\/\"\n\t            },\n\t            \"author\": {\n\t                \"name\": \"Andrew Treadway\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/d4018570a16fb867f1c08412fc9c64bc\"\n\t            },\n\t            \"headline\": \"How to Create PowerPoint Reports with R\",\n\t            \"datePublished\": \"2022-09-15T13:28:00+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:58:12+00:00\",\n\t            \"mainEntityOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/how-to-create-powerpoint-reports-with-r\\\/\"\n\t            },\n\t            \"wordCount\": 390,\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/how-to-create-powerpoint-reports-with-r\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2021\\\/03\\\/R-programing.jpg\",\n\t            \"keywords\": [\n\t                \"Data Science\",\n\t                \"ggplot2\",\n\t                \"GitHub\",\n\t                \"R\",\n\t                \"rstats\"\n\t            ],\n\t            \"articleSection\": [\n\t                \"Data Science\",\n\t                \"Programming Languages\",\n\t                \"Quant\",\n\t                \"Quant Development\",\n\t                \"Quant North America\",\n\t                \"Quant Regions\",\n\t                \"R Development\"\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"WebPage\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/how-to-create-powerpoint-reports-with-r\\\/\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/how-to-create-powerpoint-reports-with-r\\\/\",\n\t            \"name\": \"How to Create PowerPoint Reports with R | IBKR Quant Blog\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\"\n\t            },\n\t            \"primaryImageOfPage\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/how-to-create-powerpoint-reports-with-r\\\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/how-to-create-powerpoint-reports-with-r\\\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2021\\\/03\\\/R-programing.jpg\",\n\t            \"datePublished\": \"2022-09-15T13:28:00+00:00\",\n\t            \"dateModified\": \"2022-11-21T14:58:12+00:00\",\n\t            \"description\": \"This article will expand on\u00a0officer\u00a0by showing how we can use it to create PowerPoint reports.\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"ReadAction\",\n\t                    \"target\": [\n\t                        \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/how-to-create-powerpoint-reports-with-r\\\/\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"ImageObject\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"@id\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/ibkr-quant-news\\\/how-to-create-powerpoint-reports-with-r\\\/#primaryimage\",\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2021\\\/03\\\/R-programing.jpg\",\n\t            \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2021\\\/03\\\/R-programing.jpg\",\n\t            \"width\": 900,\n\t            \"height\": 550,\n\t            \"caption\": \"R Programming\"\n\t        },\n\t        {\n\t            \"@type\": \"WebSite\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#website\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"name\": \"IBKR Campus US\",\n\t            \"description\": \"Financial Education from Interactive Brokers\",\n\t            \"publisher\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\"\n\t            },\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"SearchAction\",\n\t                    \"target\": {\n\t                        \"@type\": \"EntryPoint\",\n\t                        \"urlTemplate\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/?s={search_term_string}\"\n\t                    },\n\t                    \"query-input\": {\n\t                        \"@type\": \"PropertyValueSpecification\",\n\t                        \"valueRequired\": true,\n\t                        \"valueName\": \"search_term_string\"\n\t                    }\n\t                }\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"Organization\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#organization\",\n\t            \"name\": \"Interactive Brokers\",\n\t            \"alternateName\": \"IBKR\",\n\t            \"url\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/\",\n\t            \"logo\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"en-US\",\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\",\n\t                \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"contentUrl\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/wp-content\\\/uploads\\\/sites\\\/2\\\/2024\\\/05\\\/ibkr-campus-logo.jpg\",\n\t                \"width\": 669,\n\t                \"height\": 669,\n\t                \"caption\": \"Interactive Brokers\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/logo\\\/image\\\/\"\n\t            },\n\t            \"publishingPrinciples\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/about-ibkr-campus\\\/\",\n\t            \"ethicsPolicy\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/cyber-security-notice\\\/\"\n\t        },\n\t        {\n\t            \"@type\": \"Person\",\n\t            \"@id\": \"https:\\\/\\\/ibkrcampus.com\\\/campus\\\/#\\\/schema\\\/person\\\/d4018570a16fb867f1c08412fc9c64bc\",\n\t            \"name\": \"Andrew Treadway\",\n\t            \"description\": \"Andrew Treadway currently works as a Senior Data Scientist, and has experience doing analytics, software automation, and ETL. He completed a master\u2019s degree in computer science \\\/ machine learning, and an undergraduate degree in pure mathematics. Connect with him on LinkedIn: https:\\\/\\\/www.linkedin.com\\\/in\\\/andrew-treadway-a3b19b103\\\/In addition to TheAutomatic.net blog, he also teaches in-person courses on Python and R through my NYC meetup: more details.\",\n\t            \"sameAs\": [\n\t                \"https:\\\/\\\/theautomatic.net\\\/about-me\\\/\"\n\t            ],\n\t            \"url\": \"https:\\\/\\\/www.interactivebrokers.com\\\/campus\\\/author\\\/andrewtreadway\\\/\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Create PowerPoint Reports with R | IBKR Quant","description":"This article will expand on\u00a0officer\u00a0by showing how we can use it to create PowerPoint reports.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.interactivebrokers.com\/campus\/wp-json\/wp\/v2\/posts\/157292\/","og_locale":"en_US","og_type":"article","og_title":"How to Create PowerPoint Reports with R | IBKR Quant Blog","og_description":"This article will expand on\u00a0officer\u00a0by showing how we can use it to create PowerPoint reports.","og_url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-to-create-powerpoint-reports-with-r\/","og_site_name":"IBKR Campus US","article_published_time":"2022-09-15T13:28:00+00:00","article_modified_time":"2022-11-21T14:58:12+00:00","og_image":[{"width":900,"height":550,"url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/03\/R-programing.jpg","type":"image\/jpeg"}],"author":"Andrew Treadway","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Andrew Treadway","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-to-create-powerpoint-reports-with-r\/#article","isPartOf":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-to-create-powerpoint-reports-with-r\/"},"author":{"name":"Andrew Treadway","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/d4018570a16fb867f1c08412fc9c64bc"},"headline":"How to Create PowerPoint Reports with R","datePublished":"2022-09-15T13:28:00+00:00","dateModified":"2022-11-21T14:58:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-to-create-powerpoint-reports-with-r\/"},"wordCount":390,"publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-to-create-powerpoint-reports-with-r\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/03\/R-programing.jpg","keywords":["Data Science","ggplot2","GitHub","R","rstats"],"articleSection":["Data Science","Programming Languages","Quant","Quant Development","Quant North America","Quant Regions","R Development"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-to-create-powerpoint-reports-with-r\/","url":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-to-create-powerpoint-reports-with-r\/","name":"How to Create PowerPoint Reports with R | IBKR Quant Blog","isPartOf":{"@id":"https:\/\/ibkrcampus.com\/campus\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-to-create-powerpoint-reports-with-r\/#primaryimage"},"image":{"@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-to-create-powerpoint-reports-with-r\/#primaryimage"},"thumbnailUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/03\/R-programing.jpg","datePublished":"2022-09-15T13:28:00+00:00","dateModified":"2022-11-21T14:58:12+00:00","description":"This article will expand on\u00a0officer\u00a0by showing how we can use it to create PowerPoint reports.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-to-create-powerpoint-reports-with-r\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.interactivebrokers.com\/campus\/ibkr-quant-news\/how-to-create-powerpoint-reports-with-r\/#primaryimage","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/03\/R-programing.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/03\/R-programing.jpg","width":900,"height":550,"caption":"R Programming"},{"@type":"WebSite","@id":"https:\/\/ibkrcampus.com\/campus\/#website","url":"https:\/\/ibkrcampus.com\/campus\/","name":"IBKR Campus US","description":"Financial Education from Interactive Brokers","publisher":{"@id":"https:\/\/ibkrcampus.com\/campus\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ibkrcampus.com\/campus\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ibkrcampus.com\/campus\/#organization","name":"Interactive Brokers","alternateName":"IBKR","url":"https:\/\/ibkrcampus.com\/campus\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/","url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","contentUrl":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2024\/05\/ibkr-campus-logo.jpg","width":669,"height":669,"caption":"Interactive Brokers"},"image":{"@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/logo\/image\/"},"publishingPrinciples":"https:\/\/www.interactivebrokers.com\/campus\/about-ibkr-campus\/","ethicsPolicy":"https:\/\/www.interactivebrokers.com\/campus\/cyber-security-notice\/"},{"@type":"Person","@id":"https:\/\/ibkrcampus.com\/campus\/#\/schema\/person\/d4018570a16fb867f1c08412fc9c64bc","name":"Andrew Treadway","description":"Andrew Treadway currently works as a Senior Data Scientist, and has experience doing analytics, software automation, and ETL. He completed a master\u2019s degree in computer science \/ machine learning, and an undergraduate degree in pure mathematics. Connect with him on LinkedIn: https:\/\/www.linkedin.com\/in\/andrew-treadway-a3b19b103\/In addition to TheAutomatic.net blog, he also teaches in-person courses on Python and R through my NYC meetup: more details.","sameAs":["https:\/\/theautomatic.net\/about-me\/"],"url":"https:\/\/www.interactivebrokers.com\/campus\/author\/andrewtreadway\/"}]}},"jetpack_featured_media_url":"https:\/\/www.interactivebrokers.com\/campus\/wp-content\/uploads\/sites\/2\/2021\/03\/R-programing.jpg","_links":{"self":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/157292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/users\/388"}],"replies":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/comments?post=157292"}],"version-history":[{"count":0,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/posts\/157292\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media\/80184"}],"wp:attachment":[{"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/media?parent=157292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/categories?post=157292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/tags?post=157292"},{"taxonomy":"contributors-categories","embeddable":true,"href":"https:\/\/ibkrcampus.com\/campus\/wp-json\/wp\/v2\/contributors-categories?post=157292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}