Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

magicplot

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. Many magic squares have attractive such plots.

Usage

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

Arguments

m

Magic square to be plotted.

number

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

do.circuit

Boolean variable with 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))

magic

Create and Investigate Magic Squares

v1.5-9
GPL-2
Authors
Robin K. S. Hankin
Initial release
2018-09-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.