magicplot: Joins consecutive numbers of a magic square.

magicplotR Documentation

Joins consecutive numbers of a magic square.

Description

A nice way to graphically represent normal magic squares. Lines are plotted to join successive numbers from 1 to n^2. The plot method produces pleasing images for many magic squares.

Usage

magicplot(m, number = TRUE, do.circuit = FALSE, ...)

Arguments

m

Magic square to be plotted

number

Boolean variable with default TRUE meaning to include the numbers on the plot

do.circuit

Boolean variable with default TRUE meaning to include the line joining n^2 to 1

...

Extra parameters passed to plot()

Author(s)

Robin K. S. Hankin

Examples

magicplot(magic.4n(2))

RobinHankin/magic documentation built on July 4, 2025, 11:19 a.m.