© Matt Wiley, Joshua F. Wiley 2020
M. Wiley, J. F. WileyBeginning R 4 https://doi.org/10.1007/978-1-4842-6053-1_2

2. Installing Packages and Using Libraries

Matt Wiley1  and Joshua F. Wiley2
(1)
Victoria College, Victoria, TX, USA
(2)
Turner Institute for Brain and Mental Health, Monash University, Melbourne, Australia
 

You installed R and RStudio and are now familiar with them. Now it is time to discover another feature of R that will help you learn statistics.

In Chapter 1, your first R script used the function plot(x = mtcars$wt, y = mtcars$mpg). Then, just like magic, a graph appeared in your lower-right plot pane – except it was not magic. Behind the scenes, you were secretly using the graphics [15] package.

What is a package? When a programmer writes ...

Get Beginning R 4: From Beginner to Pro now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.