-
Notifications
You must be signed in to change notification settings - Fork 0
/
simple_density.R
25 lines (17 loc) · 897 Bytes
/
simple_density.R
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
# =============================================================================
# Simple Density Plot
# =============================================================================
library(tidyverse)
library(hrbrthemes)
options(scipen = 10^7)
# Load the datset from GitHub -------------------------------------------------
data_source <- "https://raw.githubusercontent.com/anirudhjayaraman/covid-19-india/master/downloaded_data/2020-06-07/tested_numbers_icmr_data.csv"
datset <- read.table(data_source, header = TRUE, sep = ",")
# Plotting --------------------------------------------------------------------
p1 <- datset %>%
ggplot(mapping = aes(x = Tests.per.million)) +
theme_ipsum() +
geom_density(fill = "steelblue")
p1
ggsave(filename = "distribution_plots/plots/simple_density.png", plot = p1)
# =============================================================================