r tutorial - signal processing journal clubhehu/r_tutorial_spjc.pdf · what is r? why/why not r?...
TRANSCRIPT
![Page 1: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/1.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
R TUTORIAL - Signal Processing Journal Club
Oguzhan (Ouz) Gencoglu
Department of Signal ProcessingTampere University of Technology, Finland
SPJC, November 2014
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 2: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/2.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Outline1 What is R? Why/Why not R? Practical Issues.
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
2 Introductory Examples & the R Paradigm
3 MarkdownWhat is a Markdown file?Markdown Example
4 Plotting and Graphics with RBase Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
5 Machine Learning & Statistical Learning with RUseful Packages and Examples
6 Miscellaneous StuffInteractive ApplicationsAPI InteractionAnd more...
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 3: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/3.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
Outline1 What is R? Why/Why not R? Practical Issues.
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
2 Introductory Examples & the R Paradigm
3 MarkdownWhat is a Markdown file?Markdown Example
4 Plotting and Graphics with RBase Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
5 Machine Learning & Statistical Learning with RUseful Packages and Examples
6 Miscellaneous StuffInteractive ApplicationsAPI InteractionAnd more...
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 4: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/4.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
What is R? Why/Why not R? Practical Issues.What exactly is this R thing?
R is a language and environment for statistical computing andgraphics. It provides a wide variety of statistical (linear andnonlinear modeling, classical statistical tests, time-series analysis,classification, clustering, ...) and graphical techniques, and ishighly extensible.
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 5: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/5.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
Outline1 What is R? Why/Why not R? Practical Issues.
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
2 Introductory Examples & the R Paradigm
3 MarkdownWhat is a Markdown file?Markdown Example
4 Plotting and Graphics with RBase Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
5 Machine Learning & Statistical Learning with RUseful Packages and Examples
6 Miscellaneous StuffInteractive ApplicationsAPI InteractionAnd more...
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 6: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/6.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
What is R? Why/Why not R? Practical Issues.The Good, The Bad & the Ugly (Sides of R)
Free (Speech & Sandwich)
Most comprehensivestatistical analysisenvironment
Maintained by manystatisticians, scientists
Outstanding graphicalcapabilities
Almost 5000 packages
Cross-platform
Active user group
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 7: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/7.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
What is R? Why/Why not R? Practical Issues.The Good, The Bad & the Ugly (Sides of R)
Free (Speech & Sandwich)
Most comprehensivestatistical analysisenvironment
Maintained by manystatisticians, scientists
Outstanding graphicalcapabilities
Almost 5000 packages
Cross-platform
Active user group
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 8: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/8.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
What is R? Why/Why not R? Practical Issues.The Good, The Bad & the Ugly (Sides of R)
Free (Speech & Sandwich)
Most comprehensivestatistical analysisenvironment
Maintained by manystatisticians, scientists
Outstanding graphicalcapabilities
Almost 5000 packages
Cross-platform
Active user group
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 9: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/9.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
What is R? Why/Why not R? Practical Issues.The Good, The Bad & the Ugly (Sides of R)
Free (Speech & Sandwich)
Most comprehensivestatistical analysisenvironment
Maintained by manystatisticians, scientists
Outstanding graphicalcapabilities
Almost 5000 packages
Cross-platform
Active user group
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 10: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/10.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
What is R? Why/Why not R? Practical Issues.The Good, The Bad & the Ugly (Sides of R)
Free (Speech & Sandwich)
Most comprehensivestatistical analysisenvironment
Maintained by manystatisticians, scientists
Outstanding graphicalcapabilities
Almost 5000 packages
Cross-platform
Active user group
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 11: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/11.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
What is R? Why/Why not R? Practical Issues.The Good, The Bad & the Ugly (Sides of R)
Free (Speech & Sandwich)
Most comprehensivestatistical analysisenvironment
Maintained by manystatisticians, scientists
Outstanding graphicalcapabilities
Almost 5000 packages
Cross-platform
Active user group
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 12: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/12.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
What is R? Why/Why not R? Practical Issues.The Good, The Bad & the Ugly (Sides of R)
Free (Speech & Sandwich)
Most comprehensivestatistical analysisenvironment
Maintained by manystatisticians, scientists
Outstanding graphicalcapabilities
Almost 5000 packages
Cross-platform
Active user group
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 13: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/13.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
What is R? Why/Why not R? Practical Issues.The Good, The Bad & the Ugly (Sides of R)
/ Learning Curve
/ Memory and Speed Issuesfor certain tasks
/ Ugly syntax (my opinion)- compare Python
/ Documentation style
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 14: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/14.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
What is R? Why/Why not R? Practical Issues.The Good, The Bad & the Ugly (Sides of R)
/ Learning Curve
/ Memory and Speed Issuesfor certain tasks
/ Ugly syntax (my opinion)- compare Python
/ Documentation style
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 15: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/15.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
What is R? Why/Why not R? Practical Issues.The Good, The Bad & the Ugly (Sides of R)
/ Learning Curve
/ Memory and Speed Issuesfor certain tasks
/ Ugly syntax (my opinion)- compare Python
/ Documentation style
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 16: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/16.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
What is R? Why/Why not R? Practical Issues.The Good, The Bad & the Ugly (Sides of R)
/ Learning Curve
/ Memory and Speed Issuesfor certain tasks
/ Ugly syntax (my opinion)- compare Python
/ Documentation style
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 17: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/17.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
Outline1 What is R? Why/Why not R? Practical Issues.
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
2 Introductory Examples & the R Paradigm
3 MarkdownWhat is a Markdown file?Markdown Example
4 Plotting and Graphics with RBase Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
5 Machine Learning & Statistical Learning with RUseful Packages and Examples
6 Miscellaneous StuffInteractive ApplicationsAPI InteractionAnd more...
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 18: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/18.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
What is R? Why/Why not R? Practical Issues.Starting the Journey
R - http://ftp.sunet.se/pub/lang/CRAN/
RStudio IDE - http://www.rstudio.com/
Case sensitive
Expressions are printed, assignments not
Assigning with <- (or ->)
Commenting with #
Indexing starts from 1
NaN (not a number), NA (not available)
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 19: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/19.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
What is R? Why/Why not R? Practical Issues.Starting the Journey
R - http://ftp.sunet.se/pub/lang/CRAN/
RStudio IDE - http://www.rstudio.com/
Case sensitive
Expressions are printed, assignments not
Assigning with <- (or ->)
Commenting with #
Indexing starts from 1
NaN (not a number), NA (not available)
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 20: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/20.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
What is R? Why/Why not R? Practical Issues.Starting the Journey
R - http://ftp.sunet.se/pub/lang/CRAN/
RStudio IDE - http://www.rstudio.com/
Case sensitive
Expressions are printed, assignments not
Assigning with <- (or ->)
Commenting with #
Indexing starts from 1
NaN (not a number), NA (not available)
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 21: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/21.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
What is R? Why/Why not R? Practical Issues.Starting the Journey
R - http://ftp.sunet.se/pub/lang/CRAN/
RStudio IDE - http://www.rstudio.com/
Case sensitive
Expressions are printed, assignments not
Assigning with <- (or ->)
Commenting with #
Indexing starts from 1
NaN (not a number), NA (not available)
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 22: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/22.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
What is R? Why/Why not R? Practical Issues.Starting the Journey
R - http://ftp.sunet.se/pub/lang/CRAN/
RStudio IDE - http://www.rstudio.com/
Case sensitive
Expressions are printed, assignments not
Assigning with <- (or ->)
Commenting with #
Indexing starts from 1
NaN (not a number), NA (not available)
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 23: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/23.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
What is R? Why/Why not R? Practical Issues.Starting the Journey
R - http://ftp.sunet.se/pub/lang/CRAN/
RStudio IDE - http://www.rstudio.com/
Case sensitive
Expressions are printed, assignments not
Assigning with <- (or ->)
Commenting with #
Indexing starts from 1
NaN (not a number), NA (not available)
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 24: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/24.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
What is R? Why/Why not R? Practical Issues.Starting the Journey
R - http://ftp.sunet.se/pub/lang/CRAN/
RStudio IDE - http://www.rstudio.com/
Case sensitive
Expressions are printed, assignments not
Assigning with <- (or ->)
Commenting with #
Indexing starts from 1
NaN (not a number), NA (not available)
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 25: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/25.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
What is R? Why/Why not R? Practical Issues.Starting the Journey
R - http://ftp.sunet.se/pub/lang/CRAN/
RStudio IDE - http://www.rstudio.com/
Case sensitive
Expressions are printed, assignments not
Assigning with <- (or ->)
Commenting with #
Indexing starts from 1
NaN (not a number), NA (not available)
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 26: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/26.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Assignment, Lists, Arrays etc.
———————————————————————————–introduction.R, control structures.R———————————————————————————–
Assignment
Indexing
Arrays
List
Control structures
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 27: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/27.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Assignment, Lists, Arrays etc.
———————————————————————————–introduction.R, control structures.R———————————————————————————–
Assignment
Indexing
Arrays
List
Control structures
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 28: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/28.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Assignment, Lists, Arrays etc.
———————————————————————————–introduction.R, control structures.R———————————————————————————–
Assignment
Indexing
Arrays
List
Control structures
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 29: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/29.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Assignment, Lists, Arrays etc.
———————————————————————————–introduction.R, control structures.R———————————————————————————–
Assignment
Indexing
Arrays
List
Control structures
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 30: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/30.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Assignment, Lists, Arrays etc.
———————————————————————————–introduction.R, control structures.R———————————————————————————–
Assignment
Indexing
Arrays
List
Control structures
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 31: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/31.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Data Frames
———————————————————————————–data frames.R———————————————————————————–
Creating DFs
Using DFs
Aggregation
Reshaping
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 32: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/32.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Data Frames
———————————————————————————–data frames.R———————————————————————————–
Creating DFs
Using DFs
Aggregation
Reshaping
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 33: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/33.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Data Frames
———————————————————————————–data frames.R———————————————————————————–
Creating DFs
Using DFs
Aggregation
Reshaping
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 34: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/34.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Data Frames
———————————————————————————–data frames.R———————————————————————————–
Creating DFs
Using DFs
Aggregation
Reshaping
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 35: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/35.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
‘apply’ functions
———————————————————————————–apply functions.R———————————————————————————–
lapply
sapply
tapply
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 36: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/36.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
‘apply’ functions
———————————————————————————–apply functions.R———————————————————————————–
lapply
sapply
tapply
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 37: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/37.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
‘apply’ functions
———————————————————————————–apply functions.R———————————————————————————–
lapply
sapply
tapply
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 38: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/38.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Statistical Tools
Prefix d for density value (pdf)
Prefix p for cumulative probability (cdf)
Prefix q for quantile values
Prefix r for random values from the distribution
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 39: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/39.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Statistical Tools
Prefix d for density value (pdf)
Prefix p for cumulative probability (cdf)
Prefix q for quantile values
Prefix r for random values from the distribution
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 40: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/40.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Statistical Tools
Prefix d for density value (pdf)
Prefix p for cumulative probability (cdf)
Prefix q for quantile values
Prefix r for random values from the distribution
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 41: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/41.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Statistical Tools
Prefix d for density value (pdf)
Prefix p for cumulative probability (cdf)
Prefix q for quantile values
Prefix r for random values from the distribution
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 42: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/42.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What is a Markdown file?Markdown Example
Outline1 What is R? Why/Why not R? Practical Issues.
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
2 Introductory Examples & the R Paradigm
3 MarkdownWhat is a Markdown file?Markdown Example
4 Plotting and Graphics with RBase Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
5 Machine Learning & Statistical Learning with RUseful Packages and Examples
6 Miscellaneous StuffInteractive ApplicationsAPI InteractionAnd more...
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 43: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/43.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What is a Markdown file?Markdown Example
What is a Markdown file?
R Markdown enables easy authoring of reproducible web reportsfrom R. It offers:
Easy creation of web reports from R that can be automaticallyregenerated whenever underlying code or data changes.
A highly accessible syntax (markdown) which lower thebarriers to entry for reproducible research.
Output of a standalone HTML file (with images embeddeddirectly in the file) that is easy to share using email, Dropbox,or by deploying to a web server.
Support for publishing dynamic and interactive web content.
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 44: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/44.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What is a Markdown file?Markdown Example
What is a Markdown file?
R Markdown enables easy authoring of reproducible web reportsfrom R. It offers:
Easy creation of web reports from R that can be automaticallyregenerated whenever underlying code or data changes.
A highly accessible syntax (markdown) which lower thebarriers to entry for reproducible research.
Output of a standalone HTML file (with images embeddeddirectly in the file) that is easy to share using email, Dropbox,or by deploying to a web server.
Support for publishing dynamic and interactive web content.
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 45: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/45.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What is a Markdown file?Markdown Example
What is a Markdown file?
R Markdown enables easy authoring of reproducible web reportsfrom R. It offers:
Easy creation of web reports from R that can be automaticallyregenerated whenever underlying code or data changes.
A highly accessible syntax (markdown) which lower thebarriers to entry for reproducible research.
Output of a standalone HTML file (with images embeddeddirectly in the file) that is easy to share using email, Dropbox,or by deploying to a web server.
Support for publishing dynamic and interactive web content.
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 46: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/46.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What is a Markdown file?Markdown Example
What is a Markdown file?
R Markdown enables easy authoring of reproducible web reportsfrom R. It offers:
Easy creation of web reports from R that can be automaticallyregenerated whenever underlying code or data changes.
A highly accessible syntax (markdown) which lower thebarriers to entry for reproducible research.
Output of a standalone HTML file (with images embeddeddirectly in the file) that is easy to share using email, Dropbox,or by deploying to a web server.
Support for publishing dynamic and interactive web content.
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 47: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/47.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What is a Markdown file?Markdown Example
What is a Markdown file?
R Markdown enables easy authoring of reproducible web reportsfrom R. It offers:
Easy creation of web reports from R that can be automaticallyregenerated whenever underlying code or data changes.
A highly accessible syntax (markdown) which lower thebarriers to entry for reproducible research.
Output of a standalone HTML file (with images embeddeddirectly in the file) that is easy to share using email, Dropbox,or by deploying to a web server.
Support for publishing dynamic and interactive web content.
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 48: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/48.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What is a Markdown file?Markdown Example
Outline1 What is R? Why/Why not R? Practical Issues.
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
2 Introductory Examples & the R Paradigm
3 MarkdownWhat is a Markdown file?Markdown Example
4 Plotting and Graphics with RBase Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
5 Machine Learning & Statistical Learning with RUseful Packages and Examples
6 Miscellaneous StuffInteractive ApplicationsAPI InteractionAnd more...
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 49: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/49.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
What is a Markdown file?Markdown Example
Markdown Example
0.0
0.1
0.2
0.3
−3 0 3values
dens
ity
type
1
2
3
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 50: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/50.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Base Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
Outline1 What is R? Why/Why not R? Practical Issues.
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
2 Introductory Examples & the R Paradigm
3 MarkdownWhat is a Markdown file?Markdown Example
4 Plotting and Graphics with RBase Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
5 Machine Learning & Statistical Learning with RUseful Packages and Examples
6 Miscellaneous StuffInteractive ApplicationsAPI InteractionAnd more...
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 51: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/51.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Base Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
Base Plotting System
———————————————————————————–base introduction.R, base exploratory.R, maps example.R———————————————————————————–Idea: High-level graphing function followed by low-level modifyingfunctions + default parameters
Most common high-level ones: plot, hist, barplot, boxplot, curveMost common low-level ones: lines, text, axis, points, title, mtextGlobal graphics parameters: par()
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 52: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/52.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Base Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
Base Plotting System
———————————————————————————–base introduction.R, base exploratory.R, maps example.R———————————————————————————–Idea: High-level graphing function followed by low-level modifyingfunctions + default parameters
Most common high-level ones: plot, hist, barplot, boxplot, curve
Most common low-level ones: lines, text, axis, points, title, mtextGlobal graphics parameters: par()
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 53: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/53.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Base Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
Base Plotting System
———————————————————————————–base introduction.R, base exploratory.R, maps example.R———————————————————————————–Idea: High-level graphing function followed by low-level modifyingfunctions + default parameters
Most common high-level ones: plot, hist, barplot, boxplot, curveMost common low-level ones: lines, text, axis, points, title, mtext
Global graphics parameters: par()
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 54: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/54.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Base Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
Base Plotting System
———————————————————————————–base introduction.R, base exploratory.R, maps example.R———————————————————————————–Idea: High-level graphing function followed by low-level modifyingfunctions + default parameters
Most common high-level ones: plot, hist, barplot, boxplot, curveMost common low-level ones: lines, text, axis, points, title, mtextGlobal graphics parameters: par()
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 55: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/55.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Base Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
Outline1 What is R? Why/Why not R? Practical Issues.
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
2 Introductory Examples & the R Paradigm
3 MarkdownWhat is a Markdown file?Markdown Example
4 Plotting and Graphics with RBase Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
5 Machine Learning & Statistical Learning with RUseful Packages and Examples
6 Miscellaneous StuffInteractive ApplicationsAPI InteractionAnd more...
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 56: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/56.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Base Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
Lattice
Useful for trellis graphs, i.e., graphsthat display a variable or the relation-ship between variables, conditionedon one or more other variables.
formula argument: y ∼ x ∣ p * rwherey and x are primary variablesp and r are conditioning variables
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 57: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/57.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Base Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
Lattice
Useful for trellis graphs, i.e., graphsthat display a variable or the relation-ship between variables, conditionedon one or more other variables.
formula argument: y ∼ x ∣ p * rwherey and x are primary variablesp and r are conditioning variables
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 58: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/58.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Base Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
Lattice Introductory Example
———————————————————————————–lattice introduction.R———————————————————————————–
Plot Fiji earthquakes, i.e., plot lat-itude vs. longitude conditioned ondepth and magnitude.
Fiji Earthquakes
longitude
latit
ude
−35
−30
−25
−20
−15
−10
165 170 175 180 185
depthgroupmagnitude
165 170 175 180 185
depthgroupmagnitude
165 170 175 180 185
depthgroupmagnitude
depthgroupmagnitude
depthgroupmagnitude
−35
−30
−25
−20
−15
−10
depthgroupmagnitude
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 59: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/59.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Base Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
Outline1 What is R? Why/Why not R? Practical Issues.
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
2 Introductory Examples & the R Paradigm
3 MarkdownWhat is a Markdown file?Markdown Example
4 Plotting and Graphics with RBase Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
5 Machine Learning & Statistical Learning with RUseful Packages and Examples
6 Miscellaneous StuffInteractive ApplicationsAPI InteractionAnd more...
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 60: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/60.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Base Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
Grammar of Graphics (ggplot2)
————————————————–ggplot2 introduction.R————————————————–
Plot galaxy clusters info with errorintervals.
1
0.01 0.10Radius (R500)
Sca
led
Tem
pera
ture
type
Cool core
Non−cool core
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 61: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/61.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Base Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
Grammar of Graphics (ggplot2)
————————————————–ggplot2 example2.R————————————————–
Several simple plot examples onthe same dataset.
0
25
50
75
1997 1998 1999 2000 2001date
tem
p
factor(season)
autumn
spring
summer
winter
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 62: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/62.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Base Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
Outline1 What is R? Why/Why not R? Practical Issues.
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
2 Introductory Examples & the R Paradigm
3 MarkdownWhat is a Markdown file?Markdown Example
4 Plotting and Graphics with RBase Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
5 Machine Learning & Statistical Learning with RUseful Packages and Examples
6 Miscellaneous StuffInteractive ApplicationsAPI InteractionAnd more...
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 63: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/63.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Base Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
External Packages
Package: arcdiagram
ACKBAR BEN BIGGS CREATURE EMPEROR GOLD LEADER HAN JABBA LANDO LEIA LUKE OWEN PIETT RED LEADER TARKIN THREEPIO TROOPER VADER WEDGE YODA
star
death
attack
shield
luke
force
will
can
father
jedi
side
vader
emperor
became
luke
going
back
get
just
one
pull
right
side
jedi
mine
come
eat
will
will
now
young
friends
skywalker
side
can
good
dark
fleet
leader
gold
get
chewie
going
got
come
well
right
like
kid
hey
will
han
right
get
vader
han
fighters
chewie
leia
lord
shield
star
luke
get
know
come
kenobi
going
help
hope
chewie
obiwan
know
going
right
come
back
can
just
well
got
father
luke
one
take
need
lord
yes
vader
red
copy
just
will
rebel
station
vader
yes
sir
artoo
master
going
luke
think
wait
jabba
help
sure
right
blast
will
ship
now
can
obiwan
admiral
skywalker
master
emperor
force
leader
red
two
will
force
yes
must
dark
jedi
mind
now
Star Wars: Character DialoguesArc−diagram
●
●
●
Episodes
IVVVI
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 64: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/64.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Base Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
External Packages
Packages: maptools, geosphere
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 65: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/65.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Base Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
Graphing Roadmap
Task Graphing Tool
Exploratory Analysis base
Simple 2D Plots base
Quick Plotting base
Trellis Graphs lattice
Formal Plotting ggplot2
Beautiful (?) Plots ggplot2
Unconventional Plots external packages
Graphing Roadmap
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 66: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/66.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Useful Packages and Examples
Outline1 What is R? Why/Why not R? Practical Issues.
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
2 Introductory Examples & the R Paradigm
3 MarkdownWhat is a Markdown file?Markdown Example
4 Plotting and Graphics with RBase Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
5 Machine Learning & Statistical Learning with RUseful Packages and Examples
6 Miscellaneous StuffInteractive ApplicationsAPI InteractionAnd more...
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 67: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/67.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Useful Packages and Examples
Some useful packages:
caret : General machine learning
nnet : Neural networks
randomForest : Decision trees/random forests
bigrf : Random forests for large datasets
gbm : Gradient boosting
lars, lasso2, glmnet : Regularized methods
e1071, kernlab : SVMs and kernel methods
rgp, rgenoud : Genetic algorithms
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 68: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/68.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Useful Packages and Examples
Logistic Regression Example
———————————————————————————–logistic regression.R———————————————————————————–
Predict graduate school admissionprobabilities using logistic regres-sion.
0.0
0.2
0.4
0.6
0.8
200 400 600 800gre
Pre
dict
edP
rob
rank
1
2
3
4
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 69: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/69.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Useful Packages and Examples
Neural Network Example
———————————————————————————–neural net.R———————————————————————————–
Binary classification using a verysimple neural network classifier. −2 0 1 2 3
−2
01
23
x[,1]
x[,2
]
nnet with 1 hidden units
−2 0 1 2 3
−2
01
23
x[,1]
x[,2
]
nnet with 2 hidden units
−2 0 1 2 3
−2
01
23
x[,1]
x[,2
]
nnet with 3 hidden units
−2 0 1 2 3
−2
01
23
x[,1]
x[,2
]
nnet with 4 hidden units
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 70: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/70.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Useful Packages and Examples
Random Forest Example
———————————————————————————–random forest.R———————————————————————————–Binary classification using a very simple random forest classifier.
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 71: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/71.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Interactive ApplicationsAPI InteractionAnd more...
Outline1 What is R? Why/Why not R? Practical Issues.
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
2 Introductory Examples & the R Paradigm
3 MarkdownWhat is a Markdown file?Markdown Example
4 Plotting and Graphics with RBase Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
5 Machine Learning & Statistical Learning with RUseful Packages and Examples
6 Miscellaneous StuffInteractive ApplicationsAPI InteractionAnd more...
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 72: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/72.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Interactive ApplicationsAPI InteractionAnd more...
Miscellaneous StuffInteractive Plotting and Documentation
———————————————————————————–shakespeare.R———————————————————————————–Conduct document analysis on Shakespeare’s plays in aninteractive way using the shiny package.
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 73: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/73.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Interactive ApplicationsAPI InteractionAnd more...
Outline1 What is R? Why/Why not R? Practical Issues.
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
2 Introductory Examples & the R Paradigm
3 MarkdownWhat is a Markdown file?Markdown Example
4 Plotting and Graphics with RBase Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
5 Machine Learning & Statistical Learning with RUseful Packages and Examples
6 Miscellaneous StuffInteractive ApplicationsAPI InteractionAnd more...
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 74: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/74.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Interactive ApplicationsAPI InteractionAnd more...
Miscellaneous StuffAPI Interaction
Data mining on Twitter using twitteR package.
datagoogle
pandamining
machinelearning
trendsguys
book
googles
algorithm
awar
dbirddodo
machine learning
series
softwarewingflapping
action
playing
reviewartificial intelligence
data mining
guess
languagengram
view
er
named
prokoppmanning
popu
lar
programmers bookwatchiprog
via
amp
clas
s
computation
hard
cove
r
pattern
recognition
conference
developer
using
brief
adaptive airborne
job
advanced
arxi
v breuderink
classifier technology and the illusionof progress
connection
euro
pean
httptcowse
shortteaching
tools
elton
coursera
editionintroduction
produced
scala
statistics
techniques created
declining
informationkaufmann
morgan
onlin
e
practical
readingre
sear
ch
time
algorithms
attainable
engineer
free
learn
students
taking
afteanalysis
approach
bioinformatics
computer
java
join
looking
module
neural
nlp
programming
science
sign
summer
apacheapplications
curalate
discovery
eltons
international
knowledge
mahout
math
name
practice
python
artificial
business
chapman
course
ecml
hallcrc
jobs
lectures
level logi
c
machineguided
qual
ity
set
statistical
than
ks
ads
algorithmic
article
australia
awesome
bigmlcom
canberra
courseseltchat
engineering
exam
example
feasible
february
field
httptcovtpwqdtq
if young graduates want to build a future in the big data era i have one word for you ok two machine learning
inte
llige
nce
internet
mldm
musical
press
processing
scho
ols
scientific
search
sewing
speaking
stats
study
talk
top
tübinge
tutorial
yeah
achievable addition
andrew
april
author
available
basic
body
buttons
children
classification
computational databases
detect
education
equation
exciting
fun
grok
growing
hadoopmapreduce
handson
hiring
http
stco
twjtd
ihttptcobktnieel
kenreismanmachinelearning
lecture
leipzig
methods
minute
networks
noldorin
optimization
overview
parallel
pow
ersh
ell
prediction
principles
realtime
skills
stackcareers
stuff
systems
tech
technology
text
theory
tool
twist
ubuntu
vision
week
workshop
wor
ld
york
advances
advertising
apply
assistant
basics
beak
er
beef
arin
o
blackhat
books
brelow
clonewise
code
coffee
cognitive
collection
commission
commoncommunication
concepts
conversationtarge
crampell
cshanklin
cyber
dataset
doll
easy
embedded
encog
engine
evob
io
evol
utio
nary
examples
fixedtermfranciscofuture
gesture
goal
goggles
grahamstanley
gtlt
gutelius
hannaha
ppie
r
help
hes
httpstcohshwlpc
httptcoejtrpxe
httptcoicdcw
httptcojvkljyq
httptcontmbpow
httptcopdlqgg
httptcoqrwzoit
httptcovausuto
if young graduates want to build a future in the big data era i have word for you ok machine learning
implementationsinductive
infoq
instructortaught
irisjameskobielus
john
jxin
sigh
t
kevinweil
killing
learningai
life
logistic
mac
hine
guid
ed le
arni
ng
manager
mar
isac
mar
ket
mccrory
mumnam
news
ooyala
opportunity
perspective
phd
philadelphia
players
proc
eedi
ngs
product
rebill
repository
rickasaurus
san
security
self
semisupervised
seri
signals
single
stanford
start
startup
stories
supe
rvis
ed
support
taught
third timfox
traditional
translationusa
vending
washing
wendy
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 75: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/75.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Interactive ApplicationsAPI InteractionAnd more...
Outline1 What is R? Why/Why not R? Practical Issues.
What exactly is this R thing?The Good, The Bad & the Ugly (Sides of R)Practical Issues
2 Introductory Examples & the R Paradigm
3 MarkdownWhat is a Markdown file?Markdown Example
4 Plotting and Graphics with RBase Plotting SystemLattice Plotting SystemGrammar of Graphics (ggplot2) Plotting SystemExternal Packages
5 Machine Learning & Statistical Learning with RUseful Packages and Examples
6 Miscellaneous StuffInteractive ApplicationsAPI InteractionAnd more...
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 76: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/76.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Interactive ApplicationsAPI InteractionAnd more...
Miscellaneous StuffAnd more...
One can
get data out of a database : RMySQL, RMongoDB, rhdf5,ROracle
teach in R : swirl
interact with C or Python : Rcpp, rPython
embed R code into LATEX : sweave
and more ...
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 77: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/77.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Interactive ApplicationsAPI InteractionAnd more...
Miscellaneous StuffAnd more...
One can
get data out of a database : RMySQL, RMongoDB, rhdf5,ROracle
teach in R : swirl
interact with C or Python : Rcpp, rPython
embed R code into LATEX : sweave
and more ...
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 78: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/78.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Interactive ApplicationsAPI InteractionAnd more...
Miscellaneous StuffAnd more...
One can
get data out of a database : RMySQL, RMongoDB, rhdf5,ROracle
teach in R : swirl
interact with C or Python : Rcpp, rPython
embed R code into LATEX : sweave
and more ...
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 79: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/79.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Interactive ApplicationsAPI InteractionAnd more...
Miscellaneous StuffAnd more...
One can
get data out of a database : RMySQL, RMongoDB, rhdf5,ROracle
teach in R : swirl
interact with C or Python : Rcpp, rPython
embed R code into LATEX : sweave
and more ...
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 80: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/80.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Interactive ApplicationsAPI InteractionAnd more...
Miscellaneous StuffAnd more...
One can
get data out of a database : RMySQL, RMongoDB, rhdf5,ROracle
teach in R : swirl
interact with C or Python : Rcpp, rPython
embed R code into LATEX : sweave
and more ...
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club
![Page 81: R TUTORIAL - Signal Processing Journal Clubhehu/R_tutorial_spjc.pdf · What is R? Why/Why not R? Practical Issues. Introductory Examples & the R Paradigm Markdown Plotting and Graphics](https://reader031.vdocuments.us/reader031/viewer/2022030423/5aaab58b7f8b9a86188e5e08/html5/thumbnails/81.jpg)
What is R? Why/Why not R? Practical Issues.Introductory Examples & the R Paradigm
MarkdownPlotting and Graphics with R
Machine Learning & Statistical Learning with RMiscellaneous Stuff
Interactive ApplicationsAPI InteractionAnd more...
Questions / Comments / Suggestions
The Zen of Python
Beautiful is better than ugly.Explicit is better than implicit.Simple is better than complex.Complex is better than complicated.Flat is better than nested.Sparse is better than dense.Readability counts.(...)
Oguzhan (Ouz) Gencoglu R TUTORIAL - Signal Processing Journal Club