Learn R Programming

ddalpha (version 1.3.16)

resetPar: Reset Graphical Parameters

Description

The function returns the default graphical parameters for par.

Usage

resetPar()

Arguments

Value

The list of graphical parameters described in the 'Graphical Parameters' section of par.

Details

The returned parameters are used as input parameters for par.

Examples

Run this code

par(mfrow = c(1,2), mar = c(2,2,2,2))
plot(sin, -pi, 2*pi)
plot(cos, -pi, 2*pi)

par(resetPar())
plot(sin, -pi, 2*pi)
plot(cos, -pi, 2*pi)

Run the code above in your browser using DataLab