rladies_copenhagen

From scientist to data scientist + Level-up your clustering with shape analysis

Written by: Ciera Martinez

WEBSITE: https://iamciera.github.io/rladies_copenhagen/

Tutorial 1: The data science of shape using Momocs

Tutorial 2: How to fully explore your clustering results using ggplot and kohonen

Requirements

You will need: Rstudio installed.

Additional packages we will be using: tidyverse, ggplot2, kohonen, momocs, factoextra, naniar, RCurl, cowplot, cowplot.

You can install them all with this code:

install.packages("kohonen")
install.packages("factoextra")
install.package("naniar")
install.packages("RCurl")
install.packages("cowplot")
install.packages("tidyverse")
install.packages("kohonen")
install.packages("cowplot")

Running Code

To run examples, please download all files from Github Repository page and keep files in the same folders they were downloaded in. Open .Rmd files in Rstudio and set working directory to directory in which code was opened in .r. (Session > Set Working Directory > To Source File Location)

New to Github?: There is a green button that says “clone or download”, there is a “download” zip file option here.

Directory Structure of Repository

data: Data need to run tutorials. Including output, input, and required data for further analysis after running SOMs.

pdf: Knitted output PDFs from the .Rmd files.

html: knitted output html from .Rmd files.

r: Rmd R markdown files with all original code. Please set working directory to this directory to run all code.