☰ Menu

      UC Davis Bioinformatics Prerequisites Workshop

Home
Introduction
Intro to the Workshop and Core
Getting Connected
What is Bioinformatics/Genomics Perspective?
CLI Intro
Unix & the Command Line
Unix & the Command Line - Challenge Solutions
Environment Variables
Installing Simple Bioinformatics Software
Conda
Clusters & Modules
Advanced CLI
Git Basics
Advanced Command Line Topics
Advanced Challenge Solutions
Using Screen to Manage Multiple Projects (optional)
Intro to R
Introduction to R
Intro to tidyverse and ggplot2 - Prepare
Intro to tidyverse and ggplot2
Linear models in R
Spreadsheets
Working with spreadsheets
Bioinformatics
A Simple Bioinformatics Workflow
Support
Cheat Sheets
Software and Links
Scripts
ETC
Closing thoughts
Workshop Photos
Github
Biocore website

What is Tidyverse

https://www.tidyverse.org


tidyverse in the R ecosystem


Where does Tidyverse come from?

Packages are developed and maintained by RStudio Inc.

Many publications including:


Why was tidyverse invented?

“There are definitely some academic statisticians who just don’t understand why what I do is statistics, but basically I think they are all wrong . What I do is fundamentally statistics. The fact that data science exists as a field is a colossal failure of statistics. To me, that is what statistics is all about. It is gaining insight from data using modelling and visualization. Data munging and manipulation is hard and statistics has just said that’s not our domain.” –Hadley Wickham


Tidyverse controversy

The growing popularity of the tidyverse has led to some controversy, and some great memes!

https://twitter.com/_ColinFay/status/901167200496750592/photo/1


Some of these concerns have been outlined in the TidyverseSkeptic document, these include:

Read more of the back and forth at the following links:

https://www.r-bloggers.com/why-i-dont-use-the-tidyverse/

https://www.r-bloggers.com/the-tidyverse-curse/

http://varianceexplained.org/r/teach-tidyverse/

https://ds4ps.org/2019/04/20/datatable-vs-dplyr.html


https://twitter.com/hadleywickham/status/903102871163604994?lang=en


Alternatives:


Should you learn tidyverse?

Probably Yes

1) Data science and tidyverse are intertwined and growing rapidly.

2) “Future proof” yourself - if the next generation of R users are mostly tidyverse users, knowing tidyverse should be a safe bet for the next ~5+ years (probably?).

3) Future jobs / resume building.

4) Code examples, availability of help.

5) Because it makes the memes MUCH more enjoyable!


Getting setup

In the R console run the following commands to ensure that you have packages installed:

if (!any(rownames(installed.packages()) == "knitr")){
  install.packages("knitr")
}
library(knitr)

if (!any(rownames(installed.packages()) == "tidyverse")){
  install.packages("tidyverse")
}
library(tidyverse)

Download the template Markdown workshop document and open it

In the R console run the following command

download.file("https://raw.githubusercontent.com/ucdavis-bioinformatics-training/2019-Winter-Bioinformatics_Command_Line_and_R_Prerequisites_Workshop/master/Intro_to_R/Intro2R/Intro_to_tidyverse_and_ggplot2.Rmd", "Intro_to_tidyverse_and_ggplot2.Rmd")