Calmcode - ggplot: introduction

Introduction

1 2 3 4 5 6 7 8

The ggplot2 library is one of the most expressive data visualisation tools available. It's so powerful that there are many people who taught themselves R just to use it. In this series of video's we'll explore why.

Make sure that the following libraries are loaded before running other code.

library(ggplot2)
library(tidyverse)

You can explore the dataframe we'll use in this series of videos via;

ChickWeight %>% as.data.frame() %>% head(5)

In this video we will show what this code does. Before running it, try to predict what the result looks like.

ggplot() +
  geom_point(data=ChickWeight, aes(x=Time, y=weight))