Learn R Programming

barsurf (version 0.5.0)

12_other_supporting_functions_2: Matrix Margins

Description

Reverse the bottom and top margins.

Usage

matrix.margins ()

Arguments

Value

A named list giving the original par settings for the margins.

Details

The function changes the par settings for the margins, for subsequent plots.

It reverses the bottom and top margins, based on the assumption that the user wants the x-axis ticks/labels on the top, and a possible main title on the bottom.

Examples

Run this code
# NOT RUN {
fv <- matrix (sample (1:24), 4, 6)

p0 <- matrix.margins ()
plot_matrix (,,fv)
par (p0)
# }

Run the code above in your browser using DataLab