Load packages library(plotrix) library(gsl) library(RColorBrewer) library(data.table) Set the background of the graphics device to black and generate a vector of colours.
par(bg = "black") colours <- brewer.pal(10, "Set3") Make necessary functions A regular polygon of n sides By default, this function draws the polygon and returns a data.