June 2016
Beginner to intermediate
1783 pages
71h 22m
English
The styles of various boxes drawn in a graph such as the one around the plotting region and the legend can be adjusted in a similar way to the line styles we saw in the last recipe.
All you need to try out in this recipe is to run R and type the recipe in the command prompt. You can also choose to save the recipe as a script so that you can use it again later on.
Let's say we want to create an L-shaped box around a graph such that the default top and right borders are not drawn. We can do so using the bty argument in the par() command:
par(bty="l") plot(rnorm(100))

The bty argument stands ...
Read now
Unlock full access