Graphs in R / Data formatting

Working with tidyr package

A dataset is ‘tidy’ when every row is 1 observation

A dataset is ‘wide’ when a row contains more observations

In R tidyr package ….

 

Result

In Plots

 With the wide dataset :

With the tidy dataset

 

 

 

Graphs in R / Data formatting
Tagged on: