Plotting in R with graphics

Introduction

The graphics package is included with the language, meaning you won’t need to import anything at the beginning of your file. It includes a ton of useful, variably-complex plots to use on your journey of data visualization.

Examples

Make a table from the values in the column Year and the plot this table

Click to see solution
myDF <- read.csv("/anvil/projects/tdm/data/olympics/athlete_events.csv")

table(myDF$Year)

plot(table(myDF$Year))