CircularVoronoi: Circular Voronoi Plot

Description Usage Arguments Details Value Author(s) Examples

View source: R/CircularVoronoi.R

Description

Makes a circular Voronoi plot.

Usage

1
CircularVoronoi(x, y, heat, EdgeFactor = 1.1, NColours = 100)

Arguments

x

The x coordinates of the points to plot.

y

The y coordinates of the points to plot.

heat

Numerical values that will determine the colour of each tile plotted (i.e., as a heat map).

EdgeFactor

The proportional extension of the edge of the plotting circle (i.e., the default of 1.1 adds 10% to the diameter of the point cloud).

NColours

The number of (possible) colours to use in plotting (default is 100).

Details

Intended for visualising two-dimensional projections of hyperdimensional point clouds that approximate a hypersphere. Is effectively a circular extension of the Voronoi function in the deldir package.

Value

A circular Voronoi plot with tiles coloured according to heat values.

Author(s)

Graeme T. Lloyd graemetlloyd@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Create some random data:
N <- 100
Radius <- runif(n = N, min = 0, max = 2)
Angle <- sample(1:360, size = N, replace = TRUE)
x <- Radius * cos(Angle * (pi / 180))
y <- Radius * sin(Angle * (pi / 180))
heat <- sort(runif(n = N))

# Create treespace tile plot:
CircularVoronoi(x, y, heat, EdgeFactor = 1.05)

graemetlloyd/hypRspace documentation built on Aug. 24, 2020, 11:41 a.m.