-
Notifications
You must be signed in to change notification settings - Fork 3
/
8-Demo.Rmd
43 lines (29 loc) · 1.1 KB
/
8-Demo.Rmd
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
---
title: "Style guide to R Markdown: theme+highlight"
author: "Thiyanga Talagala"
output:
html_document:
toc: true
toc_float: true
number_sections: true
theme: darkly
highlight: espresso
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
# Data Visualization
Data visualization is the graphical representation of information and data. This is important because it allows relationships of the data, trends and patterns to be more easily seen.
## Data Description: `iris`
The Iris flower data set (also known as Fisher’s Iris data set) is a multivariate data set introduced by the British statistician, eugenicist, and biologist Ronald Fisher.
```{r, fig.height=3}
library(ggplot2)
ggplot(iris, aes(x=Sepal.Length, y=Sepal.Width, colour=Species)) +
geom_point() + coord_fixed(ratio=1.7) + scale_color_brewer(palette = "Dark2")
```
### Scatter plot
A scatter plot (aka scatter chart, scatter graph) uses dots to represent values for two different numeric variables.
# Statistical modelling
Major resource for statistical modelling
- broom
- tidyverse/ modelr