From 954ab28badedc5b494e627bc0126a95b530ced48 Mon Sep 17 00:00:00 2001 From: amarell Date: Fri, 9 Jun 2023 17:20:22 +0200 Subject: [PATCH] Added answer to Exercise 02 (3rd part) to module2/exo/exercice_en.Rmd --- module2/exo2/exercice_en.Rmd | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/module2/exo2/exercice_en.Rmd b/module2/exo2/exercice_en.Rmd index fd50c1f..5cfe43d 100644 --- a/module2/exo2/exercice_en.Rmd +++ b/module2/exo2/exercice_en.Rmd @@ -1,5 +1,5 @@ --- -title: "Exercice 02 (2nd part)" +title: "Exercices Module 2" author: "Anders MÃ¥rell" date: "2023-06-09" output: html_document @@ -12,7 +12,8 @@ editor_options: knitr::opts_chunk$set(echo = TRUE) ``` -# Doing a simple calculation on your own +# Exercice 02 (2nd part) +## Doing a simple calculation on your own Compute the mean and the standard variation, the minimum, the median, and the maximum of the following data set: @@ -51,3 +52,18 @@ We can also use summary: summary(x) ``` +# Exercise 02 (3rd part) +## Data visualization + +Reproduce the first figure (sequence plot): + +```{r} +plot(x, type = "l") +``` + +Reproduce the second figure (histogram): + +```{r} +hist(x) +``` + -- 2.18.1