Learn R Programming

barsurf (version 0.7.0)

62_matrix_plot_margins: Matrix Margins

Description

Reverse the top and bottom 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 top and bottom 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, main="my plot")
par (p0)
# }

Run the code above in your browser using DataLab