plot.default(x, y, type = "p", log = "")
Graphical parameters may also be supplied as arguments to this function (see par). In addition, the high-level graphics arguments described under par and the arguments to title may be supplied to this function.
If there are non-positive observations in a coordinate that is plotted on a logarithmic scale, then those observations are not plotted and a warning is given. To get an axis label at the extremes, use, for example, ylim=range(pretty(y)).
The log argument to plot sets the axes to a log base 10 scale (this differs from the log function, which is the natural logarithm).
The stairsteps options are most commonly used when x is ordered. If x is ordered and y is non-decreasing (e.g. an empirical distribution function), type = "S" stairsteps will dominate (be nowhere less than) type = "s" stairsteps.
plot(corn.rain, corn.yield) # simple scatter plot plot(x, y, type = "l") # connected lines plot(x, y, log = "xy") # log10-log10 plot plot(x, y, type = "n");text(x, y) # do not plot, then # use text to label each point from 1 to n plot(gnp, type = "h") # high-density plot of time-series plot(density(x), type = "l") # plot of list xy