This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Whatsapp's data visualization | |
# by: Rodrigo Hernández Mota | |
# file name: dataviz_whatsapp.R | |
# V.1.0.0 | |
# General structure | |
# This file was structured as data exploration process | |
# was developing. For such reason, the main sections | |
# contained and the visualizations are divided in: | |
# - word frequency |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Code to generate radar plot. | |
# Load required data and variables | |
source("alcohol_data_download.R") | |
source("data_cleaning.R") | |
# functions --------------------------------------------------------------- | |
library(ggplot2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Radar Plots | |
# Example: consumption of pure alcohol by type of beverage | |
library(tibble) | |
# Download data ----------------------------------------------------------- | |
# Data by country and type of beverage | |
url <- "http://apps.who.int/gho/athena/data/data-text.csv?target=GHO/SA_0000001398&profile=text&filter=COUNTRY:*;REGION:EUR;ALCOHOLTYPE:*" | |
# Download and read files |
NewerOlder