Description Usage Arguments Details Value Author(s) Examples
View source: R/CircularVoronoi.R
Makes a circular Voronoi plot.
1 | CircularVoronoi(x, y, heat, EdgeFactor = 1.1, NColours = 100)
|
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). |
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.
A circular Voronoi plot with tiles coloured according to heat values.
Graeme T. Lloyd graemetlloyd@gmail.com
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.