Articles by Matteo Renzi

Lattice exercises – part 2

May 24, 2016 | Matteo Renzi

In this set of exercises we will use lattice package. Firstly, we have to install this package with command install.packages("lattice") and then we will call it library(lattice) . Lattice package permits us to create univariate, bivariate and trivariate plots. For this set of exercises we will see trivariate ... [Read more...]

Lattice exercises – part 1

April 30, 2016 | Matteo Renzi

In the exercises below we will use the lattice package. First, we have to install this package with install.packages("lattice") and then we will call it library(lattice) . The Lattice package permits us to create univariate, bivariate and trivariate plots. For this set of exercises we will see univariate ... [Read more...]

3D plotting exercises

April 6, 2016 | Matteo Renzi

In this set of exercises we will introduce the concept of 3D plotting. Specifically, we will use these commands:image(), contour() and persp(). For these exercises, you need to have a basic understanding of R objects and functions, in particular some knowledge about matrix . This set is the fourth set ... [Read more...]

Graphics parameters exercises

March 24, 2016 | Matteo Renzi

In the exercises below we practice how to personalize graphics parameters, how to produce different plots at the same time and how to save a plot in a file. We will use commands such as par and jpeg. We will use the mtcars dataset, provided by R Cran (we can ... [Read more...]

Customize a scatterplot exercises

March 17, 2016 | Matteo Renzi

In the following exercises we practice how to customize a scatterplot. We will use axis , to add an axis; mtext to add a text; and legend to add a legend. Moreover we practice how to add details in every stage. We will use the mtcars dataset, provided by R Cran (... [Read more...]

Start plotting data!

March 11, 2016 | Matteo Renzi

In the exercises below we practice the basics of visualization in R. Firstly, we use the command: plot . Then we will see how to add information to our plot through command: lines . We will use the mtcars dataset, provided by R Cran (we can upload dataset by type mtcars and ... [Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)