-
Notifications
You must be signed in to change notification settings - Fork 3
/
5-Demo_part_2.Rmd
32 lines (23 loc) · 923 Bytes
/
5-Demo_part_2.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
---
title: "Style guide to R Markdown"
author: "Thiyanga Talagala"
output:
html_document:
toc: true
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
# 1. 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.
## 1.2 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.
### 1.2.1 Scatter plot
A scatter plot (aka scatter chart, scatter graph) uses dots to represent values for two different numeric variables.
```{r}
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")
```