
how can I make graphics like this? random colors. I got a script in GAP that prints rows of numbers but I want it colored just random colors
G:=Units(Integers mod 2^3);
n:=Order(G);
M:=MultiplicationTable(G);
for i in [1..n] do
for j in [1..n] do
Print(M[i][j]," ");
od;
Print("\n");
od;
Print("\n");
I'd like to see group table so I can think about the group better
1 2 3 4
2 1 4 3
3 4 1 2
4 3 2 1
.


You could also write a GAP script to output the matrix to R. For example:
So, if we run this
it produces:
which can be input into R an plotted in colour using the plotrix function
color2D.matplot, as followswhich will plot
(You may need to run
install.packages("plotrix")to install the R package.)