CRAN Package Code

Graphing for EDA (Exploratory Data Analysis)

Published

December 29, 2019

Notable topics: Graphing for EDA (Exploratory Data Analysis)

Recorded on: 2019-12-29

Timestamps by: Alex Cookson

View code

Screencast

Timestamps

Summarizing many things by language (e.g., lines of code, comment/code ratio)

gather

Using gather function to consolidate multiple metrics into one dimension, then visualizing by facetting by metric

facet_wrap

Setting ncol = 1 within facet_wrap function to get facetted graphs to stack vertically

reorder_within
tidytext

Using reorder_within function (tidytext package) to properly reorder factors within each facet

geom_text

Using geom_text label to add language name as label to scatter points

Completing preliminary overview and looking at distribution of R code in packages

str_extract

Using str_extract to extract only letters and names from character vector (using regex)

guides

Re-ordering the order of categorical variables in the legend using guides function

Investigating comment/code ratio

Importing additional package data (looking around for a bit, then starting to actually import ~46:00)

Importing even more additional data (available packages)

separate_rows

Using separate_rows function to separate delimited values

extract

Using extract function and regex to pull out specific types of characters from a string

Summary of screencast