plot_add: Add a plot to a previous one

View source: R/plot_add.R

plot_addR Documentation

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.
This function is complementary to matlines() and matpoints() from package graphics.

Usage

plot_add(...)

Arguments

...

Parameters for plot()

Details

plot_add adds a plot to a previous one

Value

Nothing

Author(s)

Marc Girondot marc.girondot@gmail.com

See Also

Other plot and barplot functions: ScalePreviousPlot(), barplot_errbar(), plot_errbar(), show_name()

Examples

## Not run: 
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")

## End(Not run)

HelpersMG documentation built on Sept. 12, 2024, 9:35 a.m.