
- #How to make a footnote under a table to pdf how to#
- #How to make a footnote under a table to pdf mac os#
- #How to make a footnote under a table to pdf install#
- #How to make a footnote under a table to pdf software#
- #How to make a footnote under a table to pdf code#
#How to make a footnote under a table to pdf how to#
The goal of this section is to show you how to add plots and images into a Word document.
#How to make a footnote under a table to pdf software#
doc <- docx() # Create a Word documentĭoc <- addTitle(doc, "Word document with plots and Images",ĭoc <- addTitle(doc, "Introduction", level = 2)ĭoc = addParagraph(doc, value ="This Word document is created using R software and ReporteRs package.
#How to make a footnote under a table to pdf code#
The R code below creates a Word document containing an introduction, a box plot, a histogram and an image (downloaded from STHDA web site). : other arguments to pass to the plotting function The format of these 2 functions are : # Add plots addPlot() works with all R plots (base graphics, lattice, ggplot2 and grid). The functions addPlot() and addImage() can be used for adding a plot or an external image to the document. WriteDoc(doc, file = "r-reporters-formatted-word-document.docx") My_link <- pot('Click here to visit STHDA web site!',įormat=textBoldItalic(color = 'blue', underline = TRUE )) Pot(' ReporteRs', textBoldItalic(color="#F0A91B", underlined=TRUE)) + ' package.'ĭoc <- addTitle(doc, "STHDA Web site", level=1) Pot(' R software', textProperties(color="red", font.size=18)) + My_text = 'This ' + pot('Word document', highlight_style) +

Highlight_style <- textProperties(color='#1163A5',font.size = 20,įont.weight = 'bold', font.family = 'Courier New' ) Options('ReporteRs-fontsize'=12, 'ReporteRs-default-font'='Arial')ĭoc <- addTitle(doc, "Formatted text", level=1) # Change the default font size and font family The R code below creates a Word document containing a formatted text and a hyperlink : doc <- docx() My_link <- pot( 'Click here to visit STHDA website!',įormat=textBoldItalic(color = '#428BCA', underline = TRUE )) ' created using' + pot('ReporteRs', textBold()) + 'package' Pot('formatted text', textProperties(color="blue")) + Pot() function can be used as follow : # Formatted text

It contains just a simple text.")ĭoc <- addTitle(doc, "What is R language?", level = 2)ĭoc <- addParagraph(doc, "R is a language and environment for statistical computing and graphics. # Add a paragraph of text into the Word documentĭoc <- addParagraph(doc, "This simple Word document is created using R software and ReporteRs package. # Create a word document to contain R outputsĭoc <- addTitle(doc, "Simple Word document", level=1)

e.g : 1 for title1, 2 for title2, 3 for title3, etc.ĪddTitle() and addParagraph() functions can be used as follow : library(ReporteRs)

The aim of this R tutorial is to show you how to easily and quickly export outputs (including data table, plots, paragraphs of text and R scripts) from R statistical software to a Microsoft Word document (.
#How to make a footnote under a table to pdf mac os#
ReporteRs is Java-based solution, so it works on Windows, Linux and Mac OS systems. It can be also used to generate Word document from a template file with logos, fonts, etc.
#How to make a footnote under a table to pdf install#
