<commit_before>---
title       : R Graphics
subtitle    : An overview of possibilities
author      : <NAME> and <NAME>
job         : Université du Québec à Rimouski
framework   : io2012        # {io2012, html5slides, shower, dzslides, ...}
highlighter : highlight.js  # {highlight.js, prettify, highlight}
hitheme     : tomorrow      #
widgets     : []            # {mathjax, quiz, bootstrap}
mode        : selfcontained # {standalone, draft}
knit        : slidify::knit2slides
---

<!--
# Custom the slidify.css

library(slidify)
setwd('~/MEGA/QCBSgraphR/lecture')
slidify('index.rmd')

-->

## Plan

- Introduction
- R graphics basis
- Composition and multipanel plotting
- Graphics automation and export
- Ressources
- Exercises

--- .transition

## Introduction

---

## The importance of graphics

---

## The components of a graphic

---

## Guidelines for better graphics

---

## The R system

---

## Graphical packages

- graphics
- grid
- ggplot2
- lattice
- plotrix
- etc.

--- .transition

## R graphics basis

---

## Graphical parameters

The function/object `par()`

---

## The major types of graphics

- barchart
- histogram
- scatterplot
- line chart
- boxplot
- dotchart
- map

---

## An empty plot

---

## Adding points, lines, rectangles and polygons

- the functions: points(), lines(), rect(), polygon() and box()
- the arguments: pch, cex, lwd, lty, col, bg, fg, border, density, angle

---

## Adding textual informations

- title(), text(), mtext()
- font, family

---

## Changing colors

- predefined color palette
- the rgb system
- the hexadecimal nomenclature
- customized color palettes<commit_msg>Push lecture<commit_after>---
title       : R Graphics
subtitle    : An overview of possibilities
author      : <NAME> and <NAME>
job         : Université du Québec à Rimouski
framework   : io2012        # {io2012, html5slides, shower, dzslides, ...}
highlighter : highlight.js  # {highlight.js, prettify, highlight}
hitheme     : tomorrow      #
widgets     : []            # {mathjax, quiz, bootstrap}
mode        : selfcontained # {standalone, draft}
knit        : slidify::knit2slides
---

<!--
# Custom the slidify.css

library(slidify)
setwd('~/MEGA/QCBSgraphR/lecture')
slidify('index.rmd')

-->

## Plan

- Introduction
- R graphics basis
- Composition and multipanel plotting
- Graphics automation and export
- Ressources
- Exercises

--- .transition

## Introduction

---

## The importance of graphics

---

## The components of a graphic

---

## Guidelines for better graphics

---

## The R system

---

## Graphical packages

- graphics
- grid
- ggplot2
- lattice
- plotrix
- etc.

--- .transition

## R graphics basis

---

## Graphical parameters

The function/object `par()`

---

## The major types of graphics

- barchart
- histogram
- scatterplot
- line chart
- boxplot
- dotchart
- map

---

## An empty plot

---

## Adding points, lines, rectangles and polygons

- the functions: points(), lines(), rect(), polygon() and box()
- the arguments: pch, cex, lwd, lty, col, bg, fg, border, density, angle

---

## Adding textual informations

- title(), text(), mtext()
- font, family

---

## Changing colors

- predefined color palette
- the rgb system
- the hexadecimal nomenclature
- customised color palettes
{'fraction_non_alphanumeric': 0.13169984686064318, 'fraction_numerical': 0.006738131699846861, 'mean_word_length': 2.762672811059908, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5348093', 'n_tokens_mistral': 1092, 'n_tokens_neox': 1026, 'n_words': 324}