Learn R Programming

somplot (version 1.6.4)

hexbinpie: Function, used by som.plot to create plots of Kohonen maps

Description

The function is used by som.plot. It is not necessary to call hexbinpie directly. The function draws pie charts in a hexagonal grid.

Usage

hexbinpie(x, y, kat, xbnds = range(x), ybnds = range(y), hbc = NA, pal = NA, hex = "gray", circ = "gray50", cnt = "black", show.counter.border, ...)

Arguments

x
vector of X coordinates
y
vector of Y coordinates
kat
vector of categories for each data point
xbnds
limits in X direction
ybnds
limits in Y direction
hbc
data frame holding the neurons
pal
colours to be used to plot the classes of input data
hex
colour for hexagons
circ
colour for circles
cnt
colour for labels in the pies
show.counter.border
percentile as limit for the display of labels in the pie charts.
...
more arguments for customising the plot

Value

The function returns no value

Warning

The function is called by som.plot() and not intented to be used directly.

References

see function som.plot()

Examples

Run this code
## Not run: 
# 		hexbinpie(data$x, data$y, kat=data$kat, hbc = hbc, pal = pal, ...) 
# 	## End(Not run)

Run the code above in your browser using DataLab