-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
79 lines (49 loc) · 1.98 KB
/
Copy pathREADME.Rmd
File metadata and controls
79 lines (49 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%",
message = FALSE
)
suppressPackageStartupMessages(library(ggplot2))
theme_set(theme_light())
```
# TV Show rating: Plot rating of episodes by season.
**Authors:** [Clément Rieux](https://github.com/clementrx)
Thanks to [z3tt](https://github.com/z3tt) for his TidyTuesday [plot from The Office](https://github.com/z3tt/TidyTuesday/blob/main/R/2020_12_TheOffice.Rmd).
I re-use his vizualisation, to plot a TV show rating from his IMDB notes.
## How it works ?
You only have to fill :
- **serie_title** : For PNG name and plot name
- **s** : For number of seasons
- **code** : Find the code corresponding to your TV show on [IMDB](https://www.imdb.com/?ref_=nv_home)
```{r, eval=FALSE}
# Tv show title
serie_title = 'Smallville'
# Seasons
s = 10
# Tv show code
# example https://www.imdb.com/title/tt0279600/episodes?ref_=tt_eps_sm
code = 'tt0279600'
```
I will web scrap notes and votes by episodes and seasons.
Then run the code to plot and see the rating of you favorite TV show !
## Examples
### Smallville

### Peaky Blinders

### Stranger Things

### Breaking Bad

### Game of Thrones

### The Simpsons

### Your Turn !