SlideShare a Scribd company logo
1
Prepared by Volkan OBAN
REFERENCE: http://davidgohel.github.io/ReporteRs/lists.html
Produce nice outputs for
graphical, tabular and textual
reporting in R
ReporteRs is an R package for creating Microsoft (Word docxand Powerpoint pptx) and
html documents. It does not require any Microsoft component to be used. It runs on Windows, Linux,
Unix and Mac OS systems. This is the ideal tool to automate reporting generation from R.
Sepal.Length Sepal.Width Petal.Length Petal.Width Species
5.1 3.5 1.4 0.2 setosa
4.9 3.0 1.4 0.2 setosa
4.7 3.2 1.3 0.2 setosa
4.6 3.1 1.5 0.2 setosa
5.0 3.6 1.4 0.2 setosa
5.4 3.9 1.7 0.4 setosa
4.6 3.4 1.4 0.3 setosa
5.0 3.4 1.5 0.2 setosa
4.4 2.9 1.4 0.2 setosa
4.9 3.1 1.5 0.1 setosa
2
HelloWorld!
1 TABLEOF CONTENTS
3
2 LISTOF GRAPHICS
4
3 IRIS OUTPUTS
3.1 PLOT
5
4 MTCARS OUTPUTS
4.1 PLOT
6
Codes:
> library( ReporteRs )
> library( ggplot2 )
Stackoverflow is a great place to get help:
http://stackoverflow.com/tags/ggplot2.
> library(magrittr)
>
> myplot1 <- qplot(Sepal.Length, Petal.Length,
+ data = iris, color = Species,
+ size = Petal.Width, alpha = I(0.7))
> myplot2 <- qplot(mpg, wt, data = mtcars, colour = cyl )
>
> # Create a new document
> mydoc <- docx( template = "files/word/template_toc.docx" )
>
> # display available styles
> styles( mydoc )
Normal heading 1 heading 2
"Normal" "Titre1" "Titre2"
heading 3 heading 4 heading 5
"Titre3" "Titre4" "Titre5"
heading 6 heading 7 heading 8
"Titre6" "Titre7" "Titre8"
heading 9 Title Subtitle
"Titre9" "Titre" "Sous-titre"
Quote Intense Quote caption
"Citation" "Citationintense" "Lgende"
TOC Heading No Spacing List Paragraph
"En-ttedetabledesmatires" "Sansinterligne" "Paragraphedeliste"
rPlotLegend header footer
"rPlotLegend" "En-tte" "Pieddepage"
Titre1 BulletList Titre2
"Titre10" "BulletList" "Titre20"
TitleDoc rRawOutput rTableLegend
"TitleDoc" "rRawOutput" "rTableLegend"
DocDefaults
7
"DocDefaults"
> mydoc <- mydoc %>% addTitle( "Table of contents", level = 1 ) %>%
+ addTOC( ) %>% # add a table of content
+ addPageBreak() # add a page break
>
> mydoc <- mydoc %>% addTitle( "List of graphics", level = 1 ) %>%
+ addTOC( stylename = "figurereference" ) %>%
+ addTitle( "List of tables", level = 1 ) %>%
+ addTOC( stylename = "tablereference" )
> mydoc <- addPageBreak( mydoc )
>
> mydoc <- mydoc %>% addTitle( "iris outputs", level = 1 ) %>%
+ addTitle( "Plot", level = 2 ) %>%
+ addPlot(function( ) print( myplot1 ) ) %>%
+ addParagraph( value = "iris plot",
+ stylename = "figurereference") %>% # Add a legend below
the plot
+ addTitle( "Table", level = 2 ) %>%
+ addFlexTable( vanilla.table( head( iris ) ) ) %>%
+ addParagraph( value = "iris table",
+ stylename = "tablereference") # Add a legend below the ta
ble
>
> mydoc <- mydoc %>% addTitle( "mtcars outputs", level = 1 ) %>%
+ addTitle( "Plot", level = 2 ) %>%
+ addPlot(function( ) print( myplot2 ) ) %>%
+ addParagraph( value = "mtcars plot",
+ stylename = "figurereference") %>% # Add a legend below
the plot
+ addTitle( "Table", level = 2 ) %>%
+ addFlexTable( vanilla.table( head( mtcars ) ) ) %>%
+ addParagraph( value = "mtcars table",
+ stylename = "tablereference") # Add a legend below the ta
ble
>
> writeDoc( mydoc, file = "files/vv/volkan_demo.docx")
EXAMPLE: FLEXTABLE EXAMPLE
> library( boot )
> library( dplyr )
> data(mtcars)
> mtcars$cyl = as.factor(mtcars$cyl)
> data = summary(lm(mpg ~ wt + cyl, data=mtcars))$coefficients
>
> data = as.data.frame( data )
>
>
> # get signif codes
> signif.codes = cut( data[,4]
8
+ , breaks = c( -Inf, 0.001, 0.01, 0.05, Inf)
+ , labels= c("***", "**", "*", "" ) )
>
> # format the data values
> data[, 1] = formatC( data[, 1], digits=3, format = "f")
> data[, 2] = formatC( data[, 2], digits=3, format = "f")
> data[, 3] = formatC( data[, 3], digits=3, format = "f")
> data[, 4] = ifelse( data[, 4] < 0.001, "&lt; 0.001", formatC( data[, 4], di
gits=5, format = "f"))
> # add signif codes to data
> data$Signif = signif.codes
>
> # create an empty FlexTable
> coef_ft = FlexTable( data = data, add.rownames=TRUE
+ , body.par.props = parRight(), header.text.props = tex
tBold()
+ , header.columns = T
+ )
> # center the first column and set text as bold italic
> coef_ft[,1] = parCenter()
> coef_ft[,1] = textBoldItalic()
>
> # define borders
> coef_ft = setFlexTableBorders( coef_ft
+ , inner.vertical = borderNone(), inner.horiz
ontal = borderDotted()
+ , outer.vertical = borderNone(), outer.horiz
ontal = borderSolid()
+ )
> coef_ft
9
CONDITIONAL COLORED TABLE
# a summary of mtcars
dataset = aggregate( mtcars[, c("disp", "mpg", "wt")]
, by = mtcars[, c("cyl", "gear", "carb")]
, FUN = mean )
dataset = dataset[ order(dataset$cyl, dataset$gear, dataset$carb), ]
# set cell padding defaut to 2
baseCellProp = cellProperties( padding = 2 )
# Create a FlexTable with data.frame dataset
my_ft = FlexTable( data = dataset
, body.cell.props = baseCellProp
, header.cell.props = baseCellProp
, header.par.props = parProperties(text.align = "center" )
)
# set columns widths (in inches)
my_ft = setFlexTableWidths( my_ft, widths = c(0.5, 0.5, 0.5, 0.7, 0.7, 0.7) )
# span successive identical cells within column 1
my_ft = spanFlexTableRows( my_ft, j = 1, runs = as.character( dataset$cyl ) )
# overwrites some text formatting properties
my_ft[dataset$wt < 3, 6] = textProperties( color="#FF3333", font.weight = "bo
ld" )
my_ft[dataset$mpg < 20, 5] = chprop( baseCellProp, background.color = "#00AAA
A")
# overwrites some paragraph formatting properties
my_ft[, 4:6] = parProperties(text.align = "right")
# applies a border grid on table
my_ft = setFlexTableBorders( my_ft
10
, outer.vertical = borderProperties( width = 2 )
, outer.horizontal = borderProperties( width = 2 )
)
my_ft
11
Example:
Codes:
1 VOLKANOBAN
Data science isan interdisciplinaryfieldaboutprocessesandsystemstoextractknowledgeorinsights
fromdata in variousforms,eitherstructuredorunstructured,which isacontinuationof some of the
data analysisfieldssuchasstatistics,datamining,andpredictiveanalytics,similartoKnowledge
DiscoveryinDatabases(KDD).
Data science employstechniquesandtheoriesdrawnfrommanyfieldswithinthe broadareas of
mathematics,statistics,operationsresearch,[4] informationscience,andcomputerscience,including
signal processing,probabilitymodels,machine learning,statistical learning,datamining,database,data
engineering,patternrecognitionandlearning,visualization,predictive analytics,uncertaintymodeling,
data warehousing,datacompression,computerprogramming,artificial intelligence,andhigh
performance computing. DATA SCİENCE.1
1
This is another reference
12
EXAMPLE:
LISTS
ReporteRs lets you create ordered or unordered lists.
1 ORDERED LIST
1. Data Science-Analytics.
1. Analyticsisthe discovery,interpretation,andcommunicationof meaningfulpatternsin
data. Especiallyvaluableinareasrichwithrecordedinformation,analyticsreliesonthe
simultaneousapplicationof statistics,computerprogrammingandoperationsresearchto
quantifyperformance.Analyticsoftenfavorsdatavisualizationtocommunicate insight.
2. Analyticsisthe discovery,interpretation,andcommunicationof meaningfulpatternsin
data. Especiallyvaluableinareasrichwithrecordedinformation,analyticsreliesonthe
simultaneousapplicationof statistics,computerprogrammingandoperationsresearchto
quantifyperformance.Analyticsoftenfavorsdatavisualizationtocommunicate insight.
2. Data Science-Analytics.
3. Analyticsisthe discovery,interpretation,andcommunicationof meaningfulpatternsindata.
Especiallyvaluable inareasrichwithrecordedinformation,analyticsreliesonthe simultaneous
applicationof statistics,computerprogrammingandoperationsresearchtoquantify
performance.Analyticsoftenfavorsdatavisualizationtocommunicate insight.
4. Organizationsmayapplyanalyticstobusinessdatatodescribe,predict,andimprove business
performance.Specifically,areaswithinanalyticsinclude predictive analytics,prescriptive
analytics,enterprise decisionmanagement,retail analytics,store assortmentandstock-keeping
unitoptimization,marketingoptimizationandmarketingmix modeling,webanalytics,salesforce
sizingandoptimization,price andpromotionmodeling,predictive science,creditriskanalysis,and
fraudanalytics.Since analyticscanrequire extensivecomputation(see bigdata),the algorithms
and software usedforanalyticsharnessthe mostcurrentmethodsincomputerscience,statistics,
and mathematics
5. Data Science-Analytics.
6. Analyticsisthe discovery,interpretation,andcommunicationof meaningfulpatternsindata.
Especiallyvaluable inareasrichwithrecordedinformation,analyticsreliesonthe simultaneous
applicationof statistics,computerprogrammingandoperationsresearchtoquantify
performance.Analyticsoftenfavorsdatavisualizationtocommunicate insight.
7. Organizationsmayapplyanalyticstobusinessdatatodescribe,predict,andimprove business
performance.Specifically,areaswithinanalyticsinclude predictive analytics,prescriptive
analytics,enterprise decisionmanagement,retail analytics,store assortmentandstock-keeping
unitoptimization,marketingoptimizationandmarketingmix modeling,webanalytics,salesforce
sizingandoptimization,price andpromotionmodeling,predictive science,creditriskanalysis,and
fraudanalytics.Since analyticscanrequire extensivecomputation(see bigdata),the algorithms
13
and software usedforanalyticsharnessthe mostcurrentmethodsincomputerscience,statistics,
and mathematics
2 UNORDEREDLIST
● Data Science-Analytics.
○ Analyticsisthe discovery,interpretation,andcommunicationof meaningfulpatternsin
data. Especiallyvaluableinareasrichwithrecordedinformation,analyticsreliesonthe
simultaneousapplicationof statistics,computerprogrammingandoperationsresearchto
quantifyperformance.Analyticsoftenfavorsdatavisualizationtocommunicate insight.
Codes:
Reference:
http://davidgohel.github.io/ReporteRs/index.html
http://www.sthda.com/english/wiki/create-and-format-powerpoint-documents-from-r-
software

More Related Content

What's hot

Pre-Bootcamp introduction to Elixir
Pre-Bootcamp introduction to ElixirPre-Bootcamp introduction to Elixir
Pre-Bootcamp introduction to Elixir
Paweł Dawczak
 
Database performance 101
Database performance 101Database performance 101
Database performance 101
Leon Fayer
 
Sql (Introduction to Structured Query language)
Sql (Introduction to Structured Query language)Sql (Introduction to Structured Query language)
Sql (Introduction to Structured Query language)
Mohd Tousif
 
Webmontag Berlin "coffee script"
Webmontag Berlin "coffee script"Webmontag Berlin "coffee script"
Webmontag Berlin "coffee script"Webmontag Berlin
 
Ruby things
Ruby thingsRuby things
Ruby things
Julio Santos
 
R Language
R LanguageR Language
R Language
ShwetDadhaniya1
 
PHP performance 101: so you need to use a database
PHP performance 101: so you need to use a databasePHP performance 101: so you need to use a database
PHP performance 101: so you need to use a database
Leon Fayer
 
Taking Perl to Eleven with Higher-Order Functions
Taking Perl to Eleven with Higher-Order FunctionsTaking Perl to Eleven with Higher-Order Functions
Taking Perl to Eleven with Higher-Order Functions
David Golden
 
Lecture2 mysql by okello erick
Lecture2 mysql by okello erickLecture2 mysql by okello erick
Lecture2 mysql by okello erick
okelloerick
 
Closure, Higher-order function in Swift
Closure, Higher-order function in SwiftClosure, Higher-order function in Swift
Closure, Higher-order function in Swift
SeongGyu Jo
 
Managing category structures in relational databases
Managing category structures in relational databasesManaging category structures in relational databases
Managing category structures in relational databases
Antoine Osanz
 
Data Science for Folks Without (or With!) a Ph.D.
Data Science for Folks Without (or With!) a Ph.D.Data Science for Folks Without (or With!) a Ph.D.
Data Science for Folks Without (or With!) a Ph.D.
Douglas Starnes
 
Syntactic sugar in Postgre SQL
Syntactic sugar in Postgre SQLSyntactic sugar in Postgre SQL
Syntactic sugar in Postgre SQL
Antony Abramchenko
 
PHP webboard
PHP webboardPHP webboard
PHP webboard
tumetr1
 
Syntactic sugar in postgre sql
Syntactic sugar in postgre sqlSyntactic sugar in postgre sql
Syntactic sugar in postgre sql
Antony Abramchenko
 
vFabric SQLFire Introduction
vFabric SQLFire IntroductionvFabric SQLFire Introduction
vFabric SQLFire Introduction
Jags Ramnarayan
 
MYSQL
MYSQLMYSQL

What's hot (19)

Pre-Bootcamp introduction to Elixir
Pre-Bootcamp introduction to ElixirPre-Bootcamp introduction to Elixir
Pre-Bootcamp introduction to Elixir
 
mysqlHiep.ppt
mysqlHiep.pptmysqlHiep.ppt
mysqlHiep.ppt
 
Database performance 101
Database performance 101Database performance 101
Database performance 101
 
Sql (Introduction to Structured Query language)
Sql (Introduction to Structured Query language)Sql (Introduction to Structured Query language)
Sql (Introduction to Structured Query language)
 
Webmontag Berlin "coffee script"
Webmontag Berlin "coffee script"Webmontag Berlin "coffee script"
Webmontag Berlin "coffee script"
 
Ruby things
Ruby thingsRuby things
Ruby things
 
R Language
R LanguageR Language
R Language
 
PHP performance 101: so you need to use a database
PHP performance 101: so you need to use a databasePHP performance 101: so you need to use a database
PHP performance 101: so you need to use a database
 
Taking Perl to Eleven with Higher-Order Functions
Taking Perl to Eleven with Higher-Order FunctionsTaking Perl to Eleven with Higher-Order Functions
Taking Perl to Eleven with Higher-Order Functions
 
Lecture2 mysql by okello erick
Lecture2 mysql by okello erickLecture2 mysql by okello erick
Lecture2 mysql by okello erick
 
Closure, Higher-order function in Swift
Closure, Higher-order function in SwiftClosure, Higher-order function in Swift
Closure, Higher-order function in Swift
 
Managing category structures in relational databases
Managing category structures in relational databasesManaging category structures in relational databases
Managing category structures in relational databases
 
Data Science for Folks Without (or With!) a Ph.D.
Data Science for Folks Without (or With!) a Ph.D.Data Science for Folks Without (or With!) a Ph.D.
Data Science for Folks Without (or With!) a Ph.D.
 
Views notwithstanding
Views notwithstandingViews notwithstanding
Views notwithstanding
 
Syntactic sugar in Postgre SQL
Syntactic sugar in Postgre SQLSyntactic sugar in Postgre SQL
Syntactic sugar in Postgre SQL
 
PHP webboard
PHP webboardPHP webboard
PHP webboard
 
Syntactic sugar in postgre sql
Syntactic sugar in postgre sqlSyntactic sugar in postgre sql
Syntactic sugar in postgre sql
 
vFabric SQLFire Introduction
vFabric SQLFire IntroductionvFabric SQLFire Introduction
vFabric SQLFire Introduction
 
MYSQL
MYSQLMYSQL
MYSQL
 

Similar to Produce nice outputs for graphical, tabular and textual reporting in R-Reporters and export Packages.

Begin with Python
Begin with PythonBegin with Python
Begin with Python
Narong Intiruk
 
R Programming: Export/Output Data In R
R Programming: Export/Output Data In RR Programming: Export/Output Data In R
R Programming: Export/Output Data In R
Rsquared Academy
 
Introduction to R
Introduction to RIntroduction to R
Introduction to R
Sander Kieft
 
Writing DSLs with Parslet - Wicked Good Ruby Conf
Writing DSLs with Parslet - Wicked Good Ruby ConfWriting DSLs with Parslet - Wicked Good Ruby Conf
Writing DSLs with Parslet - Wicked Good Ruby Conf
Jason Garber
 
Refactoring to Macros with Clojure
Refactoring to Macros with ClojureRefactoring to Macros with Clojure
Refactoring to Macros with ClojureDmitry Buzdin
 
RDataMining slides-r-programming
RDataMining slides-r-programmingRDataMining slides-r-programming
RDataMining slides-r-programming
Yanchang Zhao
 
โครงการ 5 บท
โครงการ 5 บทโครงการ 5 บท
โครงการ 5 บทMareenaHahngeh
 
โครงการ 5 บท
โครงการ 5 บทโครงการ 5 บท
โครงการ 5 บทMareenaHahngeh
 
Software Language Design & Engineering
Software Language Design & EngineeringSoftware Language Design & Engineering
Software Language Design & Engineering
Eelco Visser
 
仕事で使うF#
仕事で使うF#仕事で使うF#
仕事で使うF#bleis tift
 
R workshop
R workshopR workshop
R workshop
Revanth19921
 
NOTEPAD MAKING IN PAYTHON BY ROHIT MALAV
NOTEPAD  MAKING IN PAYTHON BY ROHIT MALAVNOTEPAD  MAKING IN PAYTHON BY ROHIT MALAV
NOTEPAD MAKING IN PAYTHON BY ROHIT MALAV
Rohit malav
 
NOTEPAD MAKING IN PAYTHON 2ND PART BY ROHIT MALAV
NOTEPAD MAKING IN PAYTHON 2ND PART BY ROHIT MALAVNOTEPAD MAKING IN PAYTHON 2ND PART BY ROHIT MALAV
NOTEPAD MAKING IN PAYTHON 2ND PART BY ROHIT MALAV
Rohit malav
 
Assignment 2 lab 3 python gpa calculator
Assignment 2 lab 3  python gpa calculatorAssignment 2 lab 3  python gpa calculator
Assignment 2 lab 3 python gpa calculator
Nagiob Doma
 
Combinators, DSLs, HTML and F#
Combinators, DSLs, HTML and F#Combinators, DSLs, HTML and F#
Combinators, DSLs, HTML and F#Robert Pickering
 
Groovy kind of test
Groovy kind of testGroovy kind of test
Groovy kind of test
OPITZ CONSULTING Deutschland
 
Stata cheat sheet: data processing
Stata cheat sheet: data processingStata cheat sheet: data processing
Stata cheat sheet: data processing
Tim Essam
 
Salesforce meetup | Custom document generation
Salesforce meetup | Custom document generationSalesforce meetup | Custom document generation
Salesforce meetup | Custom document generation
Accenture Hungary
 
R basics
R basicsR basics
R basics
Sagun Baijal
 
Deep learning study 3
Deep learning study 3Deep learning study 3
Deep learning study 3
San Kim
 

Similar to Produce nice outputs for graphical, tabular and textual reporting in R-Reporters and export Packages. (20)

Begin with Python
Begin with PythonBegin with Python
Begin with Python
 
R Programming: Export/Output Data In R
R Programming: Export/Output Data In RR Programming: Export/Output Data In R
R Programming: Export/Output Data In R
 
Introduction to R
Introduction to RIntroduction to R
Introduction to R
 
Writing DSLs with Parslet - Wicked Good Ruby Conf
Writing DSLs with Parslet - Wicked Good Ruby ConfWriting DSLs with Parslet - Wicked Good Ruby Conf
Writing DSLs with Parslet - Wicked Good Ruby Conf
 
Refactoring to Macros with Clojure
Refactoring to Macros with ClojureRefactoring to Macros with Clojure
Refactoring to Macros with Clojure
 
RDataMining slides-r-programming
RDataMining slides-r-programmingRDataMining slides-r-programming
RDataMining slides-r-programming
 
โครงการ 5 บท
โครงการ 5 บทโครงการ 5 บท
โครงการ 5 บท
 
โครงการ 5 บท
โครงการ 5 บทโครงการ 5 บท
โครงการ 5 บท
 
Software Language Design & Engineering
Software Language Design & EngineeringSoftware Language Design & Engineering
Software Language Design & Engineering
 
仕事で使うF#
仕事で使うF#仕事で使うF#
仕事で使うF#
 
R workshop
R workshopR workshop
R workshop
 
NOTEPAD MAKING IN PAYTHON BY ROHIT MALAV
NOTEPAD  MAKING IN PAYTHON BY ROHIT MALAVNOTEPAD  MAKING IN PAYTHON BY ROHIT MALAV
NOTEPAD MAKING IN PAYTHON BY ROHIT MALAV
 
NOTEPAD MAKING IN PAYTHON 2ND PART BY ROHIT MALAV
NOTEPAD MAKING IN PAYTHON 2ND PART BY ROHIT MALAVNOTEPAD MAKING IN PAYTHON 2ND PART BY ROHIT MALAV
NOTEPAD MAKING IN PAYTHON 2ND PART BY ROHIT MALAV
 
Assignment 2 lab 3 python gpa calculator
Assignment 2 lab 3  python gpa calculatorAssignment 2 lab 3  python gpa calculator
Assignment 2 lab 3 python gpa calculator
 
Combinators, DSLs, HTML and F#
Combinators, DSLs, HTML and F#Combinators, DSLs, HTML and F#
Combinators, DSLs, HTML and F#
 
Groovy kind of test
Groovy kind of testGroovy kind of test
Groovy kind of test
 
Stata cheat sheet: data processing
Stata cheat sheet: data processingStata cheat sheet: data processing
Stata cheat sheet: data processing
 
Salesforce meetup | Custom document generation
Salesforce meetup | Custom document generationSalesforce meetup | Custom document generation
Salesforce meetup | Custom document generation
 
R basics
R basicsR basics
R basics
 
Deep learning study 3
Deep learning study 3Deep learning study 3
Deep learning study 3
 

More from Dr. Volkan OBAN

Conference Paper:IMAGE PROCESSING AND OBJECT DETECTION APPLICATION: INSURANCE...
Conference Paper:IMAGE PROCESSING AND OBJECT DETECTION APPLICATION: INSURANCE...Conference Paper:IMAGE PROCESSING AND OBJECT DETECTION APPLICATION: INSURANCE...
Conference Paper:IMAGE PROCESSING AND OBJECT DETECTION APPLICATION: INSURANCE...
Dr. Volkan OBAN
 
Covid19py Python Package - Example
Covid19py  Python Package - ExampleCovid19py  Python Package - Example
Covid19py Python Package - Example
Dr. Volkan OBAN
 
Object detection with Python
Object detection with Python Object detection with Python
Object detection with Python
Dr. Volkan OBAN
 
Python - Rastgele Orman(Random Forest) Parametreleri
Python - Rastgele Orman(Random Forest) ParametreleriPython - Rastgele Orman(Random Forest) Parametreleri
Python - Rastgele Orman(Random Forest) Parametreleri
Dr. Volkan OBAN
 
Linear Programming wi̇th R - Examples
Linear Programming wi̇th R - ExamplesLinear Programming wi̇th R - Examples
Linear Programming wi̇th R - Examples
Dr. Volkan OBAN
 
"optrees" package in R and examples.(optrees:finds optimal trees in weighted ...
"optrees" package in R and examples.(optrees:finds optimal trees in weighted ..."optrees" package in R and examples.(optrees:finds optimal trees in weighted ...
"optrees" package in R and examples.(optrees:finds optimal trees in weighted ...
Dr. Volkan OBAN
 
k-means Clustering in Python
k-means Clustering in Pythonk-means Clustering in Python
k-means Clustering in Python
Dr. Volkan OBAN
 
Naive Bayes Example using R
Naive Bayes Example using  R Naive Bayes Example using  R
Naive Bayes Example using R
Dr. Volkan OBAN
 
R forecasting Example
R forecasting ExampleR forecasting Example
R forecasting Example
Dr. Volkan OBAN
 
k-means Clustering and Custergram with R
k-means Clustering and Custergram with Rk-means Clustering and Custergram with R
k-means Clustering and Custergram with R
Dr. Volkan OBAN
 
Data Science and its Relationship to Big Data and Data-Driven Decision Making
Data Science and its Relationship to Big Data and Data-Driven Decision MakingData Science and its Relationship to Big Data and Data-Driven Decision Making
Data Science and its Relationship to Big Data and Data-Driven Decision Making
Dr. Volkan OBAN
 
Data Visualization with R.ggplot2 and its extensions examples.
Data Visualization with R.ggplot2 and its extensions examples.Data Visualization with R.ggplot2 and its extensions examples.
Data Visualization with R.ggplot2 and its extensions examples.
Dr. Volkan OBAN
 
Scikit-learn Cheatsheet-Python
Scikit-learn Cheatsheet-PythonScikit-learn Cheatsheet-Python
Scikit-learn Cheatsheet-Python
Dr. Volkan OBAN
 
Python Pandas for Data Science cheatsheet
Python Pandas for Data Science cheatsheet Python Pandas for Data Science cheatsheet
Python Pandas for Data Science cheatsheet
Dr. Volkan OBAN
 
Pandas,scipy,numpy cheatsheet
Pandas,scipy,numpy cheatsheetPandas,scipy,numpy cheatsheet
Pandas,scipy,numpy cheatsheet
Dr. Volkan OBAN
 
ReporteRs package in R. forming powerpoint documents-an example
ReporteRs package in R. forming powerpoint documents-an exampleReporteRs package in R. forming powerpoint documents-an example
ReporteRs package in R. forming powerpoint documents-an example
Dr. Volkan OBAN
 
ReporteRs package in R. forming powerpoint documents-an example
ReporteRs package in R. forming powerpoint documents-an exampleReporteRs package in R. forming powerpoint documents-an example
ReporteRs package in R. forming powerpoint documents-an example
Dr. Volkan OBAN
 
R-ggplot2 package Examples
R-ggplot2 package ExamplesR-ggplot2 package Examples
R-ggplot2 package Examples
Dr. Volkan OBAN
 
R Machine Learning packages( generally used)
R Machine Learning packages( generally used)R Machine Learning packages( generally used)
R Machine Learning packages( generally used)
Dr. Volkan OBAN
 
treemap package in R and examples.
treemap package in R and examples.treemap package in R and examples.
treemap package in R and examples.
Dr. Volkan OBAN
 

More from Dr. Volkan OBAN (20)

Conference Paper:IMAGE PROCESSING AND OBJECT DETECTION APPLICATION: INSURANCE...
Conference Paper:IMAGE PROCESSING AND OBJECT DETECTION APPLICATION: INSURANCE...Conference Paper:IMAGE PROCESSING AND OBJECT DETECTION APPLICATION: INSURANCE...
Conference Paper:IMAGE PROCESSING AND OBJECT DETECTION APPLICATION: INSURANCE...
 
Covid19py Python Package - Example
Covid19py  Python Package - ExampleCovid19py  Python Package - Example
Covid19py Python Package - Example
 
Object detection with Python
Object detection with Python Object detection with Python
Object detection with Python
 
Python - Rastgele Orman(Random Forest) Parametreleri
Python - Rastgele Orman(Random Forest) ParametreleriPython - Rastgele Orman(Random Forest) Parametreleri
Python - Rastgele Orman(Random Forest) Parametreleri
 
Linear Programming wi̇th R - Examples
Linear Programming wi̇th R - ExamplesLinear Programming wi̇th R - Examples
Linear Programming wi̇th R - Examples
 
"optrees" package in R and examples.(optrees:finds optimal trees in weighted ...
"optrees" package in R and examples.(optrees:finds optimal trees in weighted ..."optrees" package in R and examples.(optrees:finds optimal trees in weighted ...
"optrees" package in R and examples.(optrees:finds optimal trees in weighted ...
 
k-means Clustering in Python
k-means Clustering in Pythonk-means Clustering in Python
k-means Clustering in Python
 
Naive Bayes Example using R
Naive Bayes Example using  R Naive Bayes Example using  R
Naive Bayes Example using R
 
R forecasting Example
R forecasting ExampleR forecasting Example
R forecasting Example
 
k-means Clustering and Custergram with R
k-means Clustering and Custergram with Rk-means Clustering and Custergram with R
k-means Clustering and Custergram with R
 
Data Science and its Relationship to Big Data and Data-Driven Decision Making
Data Science and its Relationship to Big Data and Data-Driven Decision MakingData Science and its Relationship to Big Data and Data-Driven Decision Making
Data Science and its Relationship to Big Data and Data-Driven Decision Making
 
Data Visualization with R.ggplot2 and its extensions examples.
Data Visualization with R.ggplot2 and its extensions examples.Data Visualization with R.ggplot2 and its extensions examples.
Data Visualization with R.ggplot2 and its extensions examples.
 
Scikit-learn Cheatsheet-Python
Scikit-learn Cheatsheet-PythonScikit-learn Cheatsheet-Python
Scikit-learn Cheatsheet-Python
 
Python Pandas for Data Science cheatsheet
Python Pandas for Data Science cheatsheet Python Pandas for Data Science cheatsheet
Python Pandas for Data Science cheatsheet
 
Pandas,scipy,numpy cheatsheet
Pandas,scipy,numpy cheatsheetPandas,scipy,numpy cheatsheet
Pandas,scipy,numpy cheatsheet
 
ReporteRs package in R. forming powerpoint documents-an example
ReporteRs package in R. forming powerpoint documents-an exampleReporteRs package in R. forming powerpoint documents-an example
ReporteRs package in R. forming powerpoint documents-an example
 
ReporteRs package in R. forming powerpoint documents-an example
ReporteRs package in R. forming powerpoint documents-an exampleReporteRs package in R. forming powerpoint documents-an example
ReporteRs package in R. forming powerpoint documents-an example
 
R-ggplot2 package Examples
R-ggplot2 package ExamplesR-ggplot2 package Examples
R-ggplot2 package Examples
 
R Machine Learning packages( generally used)
R Machine Learning packages( generally used)R Machine Learning packages( generally used)
R Machine Learning packages( generally used)
 
treemap package in R and examples.
treemap package in R and examples.treemap package in R and examples.
treemap package in R and examples.
 

Recently uploaded

一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
vcaxypu
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
slg6lamcq
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
v3tuleee
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
ewymefz
 
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project PresentationPredicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Boston Institute of Analytics
 
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
Tiktokethiodaily
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Subhajit Sahu
 
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdfSample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Linda486226
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
ahzuo
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
Oppotus
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
enxupq
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
mbawufebxi
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
ewymefz
 
FP Growth Algorithm and its Applications
FP Growth Algorithm and its ApplicationsFP Growth Algorithm and its Applications
FP Growth Algorithm and its Applications
MaleehaSheikh2
 
Empowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptxEmpowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptx
benishzehra469
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
slg6lamcq
 
一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单
ewymefz
 
Opendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptxOpendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptx
Opendatabay
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
ArpitMalhotra16
 

Recently uploaded (20)

一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
一比一原版(RUG毕业证)格罗宁根大学毕业证成绩单
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
 
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project PresentationPredicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
 
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
1.Seydhcuxhxyxhccuuxuxyxyxmisolids 2019.pptx
 
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
Levelwise PageRank with Loop-Based Dead End Handling Strategy : SHORT REPORT ...
 
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdfSample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
 
一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单一比一原版(QU毕业证)皇后大学毕业证成绩单
一比一原版(QU毕业证)皇后大学毕业证成绩单
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
 
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
一比一原版(UPenn毕业证)宾夕法尼亚大学毕业证成绩单
 
FP Growth Algorithm and its Applications
FP Growth Algorithm and its ApplicationsFP Growth Algorithm and its Applications
FP Growth Algorithm and its Applications
 
Empowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptxEmpowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptx
 
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
一比一原版(UniSA毕业证书)南澳大学毕业证如何办理
 
一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单一比一原版(BU毕业证)波士顿大学毕业证成绩单
一比一原版(BU毕业证)波士顿大学毕业证成绩单
 
Opendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptxOpendatabay - Open Data Marketplace.pptx
Opendatabay - Open Data Marketplace.pptx
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
 

Produce nice outputs for graphical, tabular and textual reporting in R-Reporters and export Packages.

  • 1. 1 Prepared by Volkan OBAN REFERENCE: http://davidgohel.github.io/ReporteRs/lists.html Produce nice outputs for graphical, tabular and textual reporting in R ReporteRs is an R package for creating Microsoft (Word docxand Powerpoint pptx) and html documents. It does not require any Microsoft component to be used. It runs on Windows, Linux, Unix and Mac OS systems. This is the ideal tool to automate reporting generation from R. Sepal.Length Sepal.Width Petal.Length Petal.Width Species 5.1 3.5 1.4 0.2 setosa 4.9 3.0 1.4 0.2 setosa 4.7 3.2 1.3 0.2 setosa 4.6 3.1 1.5 0.2 setosa 5.0 3.6 1.4 0.2 setosa 5.4 3.9 1.7 0.4 setosa 4.6 3.4 1.4 0.3 setosa 5.0 3.4 1.5 0.2 setosa 4.4 2.9 1.4 0.2 setosa 4.9 3.1 1.5 0.1 setosa
  • 6. 6 Codes: > library( ReporteRs ) > library( ggplot2 ) Stackoverflow is a great place to get help: http://stackoverflow.com/tags/ggplot2. > library(magrittr) > > myplot1 <- qplot(Sepal.Length, Petal.Length, + data = iris, color = Species, + size = Petal.Width, alpha = I(0.7)) > myplot2 <- qplot(mpg, wt, data = mtcars, colour = cyl ) > > # Create a new document > mydoc <- docx( template = "files/word/template_toc.docx" ) > > # display available styles > styles( mydoc ) Normal heading 1 heading 2 "Normal" "Titre1" "Titre2" heading 3 heading 4 heading 5 "Titre3" "Titre4" "Titre5" heading 6 heading 7 heading 8 "Titre6" "Titre7" "Titre8" heading 9 Title Subtitle "Titre9" "Titre" "Sous-titre" Quote Intense Quote caption "Citation" "Citationintense" "Lgende" TOC Heading No Spacing List Paragraph "En-ttedetabledesmatires" "Sansinterligne" "Paragraphedeliste" rPlotLegend header footer "rPlotLegend" "En-tte" "Pieddepage" Titre1 BulletList Titre2 "Titre10" "BulletList" "Titre20" TitleDoc rRawOutput rTableLegend "TitleDoc" "rRawOutput" "rTableLegend" DocDefaults
  • 7. 7 "DocDefaults" > mydoc <- mydoc %>% addTitle( "Table of contents", level = 1 ) %>% + addTOC( ) %>% # add a table of content + addPageBreak() # add a page break > > mydoc <- mydoc %>% addTitle( "List of graphics", level = 1 ) %>% + addTOC( stylename = "figurereference" ) %>% + addTitle( "List of tables", level = 1 ) %>% + addTOC( stylename = "tablereference" ) > mydoc <- addPageBreak( mydoc ) > > mydoc <- mydoc %>% addTitle( "iris outputs", level = 1 ) %>% + addTitle( "Plot", level = 2 ) %>% + addPlot(function( ) print( myplot1 ) ) %>% + addParagraph( value = "iris plot", + stylename = "figurereference") %>% # Add a legend below the plot + addTitle( "Table", level = 2 ) %>% + addFlexTable( vanilla.table( head( iris ) ) ) %>% + addParagraph( value = "iris table", + stylename = "tablereference") # Add a legend below the ta ble > > mydoc <- mydoc %>% addTitle( "mtcars outputs", level = 1 ) %>% + addTitle( "Plot", level = 2 ) %>% + addPlot(function( ) print( myplot2 ) ) %>% + addParagraph( value = "mtcars plot", + stylename = "figurereference") %>% # Add a legend below the plot + addTitle( "Table", level = 2 ) %>% + addFlexTable( vanilla.table( head( mtcars ) ) ) %>% + addParagraph( value = "mtcars table", + stylename = "tablereference") # Add a legend below the ta ble > > writeDoc( mydoc, file = "files/vv/volkan_demo.docx") EXAMPLE: FLEXTABLE EXAMPLE > library( boot ) > library( dplyr ) > data(mtcars) > mtcars$cyl = as.factor(mtcars$cyl) > data = summary(lm(mpg ~ wt + cyl, data=mtcars))$coefficients > > data = as.data.frame( data ) > > > # get signif codes > signif.codes = cut( data[,4]
  • 8. 8 + , breaks = c( -Inf, 0.001, 0.01, 0.05, Inf) + , labels= c("***", "**", "*", "" ) ) > > # format the data values > data[, 1] = formatC( data[, 1], digits=3, format = "f") > data[, 2] = formatC( data[, 2], digits=3, format = "f") > data[, 3] = formatC( data[, 3], digits=3, format = "f") > data[, 4] = ifelse( data[, 4] < 0.001, "&lt; 0.001", formatC( data[, 4], di gits=5, format = "f")) > # add signif codes to data > data$Signif = signif.codes > > # create an empty FlexTable > coef_ft = FlexTable( data = data, add.rownames=TRUE + , body.par.props = parRight(), header.text.props = tex tBold() + , header.columns = T + ) > # center the first column and set text as bold italic > coef_ft[,1] = parCenter() > coef_ft[,1] = textBoldItalic() > > # define borders > coef_ft = setFlexTableBorders( coef_ft + , inner.vertical = borderNone(), inner.horiz ontal = borderDotted() + , outer.vertical = borderNone(), outer.horiz ontal = borderSolid() + ) > coef_ft
  • 9. 9 CONDITIONAL COLORED TABLE # a summary of mtcars dataset = aggregate( mtcars[, c("disp", "mpg", "wt")] , by = mtcars[, c("cyl", "gear", "carb")] , FUN = mean ) dataset = dataset[ order(dataset$cyl, dataset$gear, dataset$carb), ] # set cell padding defaut to 2 baseCellProp = cellProperties( padding = 2 ) # Create a FlexTable with data.frame dataset my_ft = FlexTable( data = dataset , body.cell.props = baseCellProp , header.cell.props = baseCellProp , header.par.props = parProperties(text.align = "center" ) ) # set columns widths (in inches) my_ft = setFlexTableWidths( my_ft, widths = c(0.5, 0.5, 0.5, 0.7, 0.7, 0.7) ) # span successive identical cells within column 1 my_ft = spanFlexTableRows( my_ft, j = 1, runs = as.character( dataset$cyl ) ) # overwrites some text formatting properties my_ft[dataset$wt < 3, 6] = textProperties( color="#FF3333", font.weight = "bo ld" ) my_ft[dataset$mpg < 20, 5] = chprop( baseCellProp, background.color = "#00AAA A") # overwrites some paragraph formatting properties my_ft[, 4:6] = parProperties(text.align = "right") # applies a border grid on table my_ft = setFlexTableBorders( my_ft
  • 10. 10 , outer.vertical = borderProperties( width = 2 ) , outer.horizontal = borderProperties( width = 2 ) ) my_ft
  • 11. 11 Example: Codes: 1 VOLKANOBAN Data science isan interdisciplinaryfieldaboutprocessesandsystemstoextractknowledgeorinsights fromdata in variousforms,eitherstructuredorunstructured,which isacontinuationof some of the data analysisfieldssuchasstatistics,datamining,andpredictiveanalytics,similartoKnowledge DiscoveryinDatabases(KDD). Data science employstechniquesandtheoriesdrawnfrommanyfieldswithinthe broadareas of mathematics,statistics,operationsresearch,[4] informationscience,andcomputerscience,including signal processing,probabilitymodels,machine learning,statistical learning,datamining,database,data engineering,patternrecognitionandlearning,visualization,predictive analytics,uncertaintymodeling, data warehousing,datacompression,computerprogramming,artificial intelligence,andhigh performance computing. DATA SCİENCE.1 1 This is another reference
  • 12. 12 EXAMPLE: LISTS ReporteRs lets you create ordered or unordered lists. 1 ORDERED LIST 1. Data Science-Analytics. 1. Analyticsisthe discovery,interpretation,andcommunicationof meaningfulpatternsin data. Especiallyvaluableinareasrichwithrecordedinformation,analyticsreliesonthe simultaneousapplicationof statistics,computerprogrammingandoperationsresearchto quantifyperformance.Analyticsoftenfavorsdatavisualizationtocommunicate insight. 2. Analyticsisthe discovery,interpretation,andcommunicationof meaningfulpatternsin data. Especiallyvaluableinareasrichwithrecordedinformation,analyticsreliesonthe simultaneousapplicationof statistics,computerprogrammingandoperationsresearchto quantifyperformance.Analyticsoftenfavorsdatavisualizationtocommunicate insight. 2. Data Science-Analytics. 3. Analyticsisthe discovery,interpretation,andcommunicationof meaningfulpatternsindata. Especiallyvaluable inareasrichwithrecordedinformation,analyticsreliesonthe simultaneous applicationof statistics,computerprogrammingandoperationsresearchtoquantify performance.Analyticsoftenfavorsdatavisualizationtocommunicate insight. 4. Organizationsmayapplyanalyticstobusinessdatatodescribe,predict,andimprove business performance.Specifically,areaswithinanalyticsinclude predictive analytics,prescriptive analytics,enterprise decisionmanagement,retail analytics,store assortmentandstock-keeping unitoptimization,marketingoptimizationandmarketingmix modeling,webanalytics,salesforce sizingandoptimization,price andpromotionmodeling,predictive science,creditriskanalysis,and fraudanalytics.Since analyticscanrequire extensivecomputation(see bigdata),the algorithms and software usedforanalyticsharnessthe mostcurrentmethodsincomputerscience,statistics, and mathematics 5. Data Science-Analytics. 6. Analyticsisthe discovery,interpretation,andcommunicationof meaningfulpatternsindata. Especiallyvaluable inareasrichwithrecordedinformation,analyticsreliesonthe simultaneous applicationof statistics,computerprogrammingandoperationsresearchtoquantify performance.Analyticsoftenfavorsdatavisualizationtocommunicate insight. 7. Organizationsmayapplyanalyticstobusinessdatatodescribe,predict,andimprove business performance.Specifically,areaswithinanalyticsinclude predictive analytics,prescriptive analytics,enterprise decisionmanagement,retail analytics,store assortmentandstock-keeping unitoptimization,marketingoptimizationandmarketingmix modeling,webanalytics,salesforce sizingandoptimization,price andpromotionmodeling,predictive science,creditriskanalysis,and fraudanalytics.Since analyticscanrequire extensivecomputation(see bigdata),the algorithms
  • 13. 13 and software usedforanalyticsharnessthe mostcurrentmethodsincomputerscience,statistics, and mathematics 2 UNORDEREDLIST ● Data Science-Analytics. ○ Analyticsisthe discovery,interpretation,andcommunicationof meaningfulpatternsin data. Especiallyvaluableinareasrichwithrecordedinformation,analyticsreliesonthe simultaneousapplicationof statistics,computerprogrammingandoperationsresearchto quantifyperformance.Analyticsoftenfavorsdatavisualizationtocommunicate insight. Codes: Reference: http://davidgohel.github.io/ReporteRs/index.html http://www.sthda.com/english/wiki/create-and-format-powerpoint-documents-from-r- software