This is the dummy Abstract that I am writing for Advanced Exercice 7 and I hope this will help me go further with the exercice. I use the no_toc function but does not seem to work. I dont’ know why.
2 Exercice 2
We have a dataset one screentime and numbber of episode for every character starred in Game Of Thrones. Tyron Lannister is both the character with the most screentime and appearing in most episode. One outlier has a 100 minutes screentime in only a few episodes - who is this guy??
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
Show/Hide Code
library("ggrepel")
Warning: package 'ggrepel' was built under R version 4.3.3
Show/Hide Code
#load the data setscreentimes <-read_csv("GOT_screentimes_1.csv")
Rows: 191 Columns: 6
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (4): name, imdb_url, portrayed_by_name, portrayed_by_imdb_url
dbl (2): screentime, episodes
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
Show/Hide Code
# Select the character with the highest screenstimesscreentimes_high <-top_n(screentimes, 10, screentime)# Make a scatterplot screentime vs. episodes.# Label the characters with the highets screentimes ggplot(screentimes, aes(screentime, episodes)) +geom_point() +geom_text_repel(data = screentimes_high,aes(label = name),min.segment.length =0)
See Figure 2 (c) for the coat of arms of house Baratheon.
6 Advanced - Exercice 3
insert a crossreference to a chapter:
See (a1?) to picture the first image that was uploaded.
This does not work and I can’t figure out why.
7 Advanced - Exercice 4
(a) Baylish
(b) Bolton
(c) Baratheon
(d) Arryn
Figure 2: Famous Houses
8 Advanced - Exercice 5
Show/Hide Code
#add a caption and cross referenceggplot(screentimes, aes(screentime, episodes)) +geom_point() +geom_text_repel(data = screentimes_high,aes(label = name),min.segment.length =0) +labs(caption ="@fig-houses shows the different goat of arms")