The plot() function is the backbone of base plots in R. It provides capability for generic X-Y plotting. It requires only one argument, x, which should be something to plot—a vector of numbers, one variable of a dataset, or a model object such as linear or logistic regression. You can, of course, add a second variable, y, plus an assortment of options to customize the plot, but x is the only input required for the function to run successfully.
For anything beyond the basic x and y arguments to the function, you'll need to get very familiar with using ?plot or help(plot). The documentation suggests options, such as those ...