Learn R Programming

phenology (version 3.72)

plot_add: Add a plot to a previous one

Description

To plot data, just add use it as a normal plot. It will plot the new data without axes, or labels for axes.

Usage

plot_add(...)

Arguments

...
Parameters for plot()

Value

  • Nothing

Details

plot_add adds a plot to a previous one

Examples

Run this code
plot(x=1:100, y=sin(1:100), type="l", bty="n", xlim=c(1,200), xlab="x", ylab="y")
plot_add(x=1:200, y=cos(1:200), type="l", bty="n", col="red")

Run the code above in your browser using DataLab