April 2021
Beginner to intermediate
404 pages
8h 15m
English
For a function like plot(), a method of the function is the version of the function that applies to a specific class of objects – such as the class of numeric vectors or the class of time series objects. In this chapter, we cover those methods of plot() in the graphics and stats packages – other than plot.default(). (The function plot.default() is the subject of Chapter 3.) There are eight methods for plot() in the graphics package, and, in the stats package, there are twenty.
When plot() is run, plot() finds the class of the first argument and, based on the class, chooses ...
Read now
Unlock full access