Intro Stats 2024

2024 R stats for biology students – an introduction to R, RStudio, and statistical analysis for biology.

R Logo

Introduction for R and tidyverse - for the Rogue R class

Welcome to our seminar course on using R for common statistical tests that you might apply in your thesis research. This course serves as an introduction to R and RStudio, drawing from our introductory biostatistics curriculum. In addition, this site is a repository for all the course materials and the specialized analyses we’ll cover later in the term.

I have found R to be a life-changing tool and use it nearly every day. I’m excited to share these resources with you!

For a complete list of example data files, please see the Example Data Files page.

Topics Covered

R_esources that can help you a lot

link to resources

Setting up R and RStudio

installing R

Installing packages/libraries

how to do this

Project set up if using raw code

projects

Reading and writing files into R

Reading and Writing

Basics of GGplot

The basics

Customizing colors and shapes in GGPlot

how to change things

Making Mean and SE plots in GGPLOT

Easy Mean SE Plots

Multiple panel plots

Using patchwork for multiple plots

Select and filter to change datframes

How to select columns and filter rows

Summarizing data

How to summarize mean and SE values

Manipulating factors

How to work with Factors and Forecats and reorder

Joining dataframes

How to bring two datafames together

T-Tests

How to do a T - Test

Correlations

How to do a correlation

Regression

How to do a regression

One Way ANOVA

How to do a One Way ANOVA

Two Way ANOVA

How to do a Two Way ANOVA