Skip to Content
R Programming Fundamentals
book

R Programming Fundamentals

by Kaelen Medeiros
September 2018
Beginner
206 pages
4h 27m
English
Packt Publishing
Content preview from R Programming Fundamentals

Activity: Recreating Plots with Base Plot Methods

Scenario

You have been asked to create some base plots that provide information on the mtcars and iris datasets for a junior colleague.

Prerequisites

Make sure you have R and RStudio installed on your machine.

Aim

To use plot() by recreating different plots with different base plot methods.

Steps for completion

  1. Load the datasets library using library(datasets).
  2. Load the iris and mpg datasets. You will need to make individual calls, using data("mtcars"), for example. You will then see the dataset in your environment as a promise. It will appear as a dataset in your list of datasets in the upper-right window when you first attempt to use it.
  1. Recreate the following base plots using iris data: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

R Programming Fundamentals

R Programming Fundamentals

Samik Sen, Marcin Dubel
Python for Programmers

Python for Programmers

Paul Deitel, Harvey Deitel

Publisher Resources

ISBN: 9781789612998Supplemental Content