last.call {plotrix}R Documentation

Find the last call containing a specified string.

Description

last.call searches the command history for the last call that has a match to the string look.for. This is currently used to find plot calls, hence the default search string.

Usage

 last.call(look.for="plot",look.back=10)

Arguments

look.for The string that will be matched in identifying the last call.
look.back How far to look back in the command history.

Value

The last call (as a character variable) that contains the string look.for.

Author(s)

Jim Lemon

See Also

legend.outside

Examples

 plot(rnorm(20),rnorm(20))
 if(dev.interactive()) last.call()

[Package plotrix version 1.41 Index]