Learn R Programming

popsom (version 4.3.1)

map.marginal: Plot Marginal Distribution

Description

Generate a plot that shows the marginal probability distribution of the neurons and data.

Usage

map.marginal(map,marginal)

Arguments

map

an object of type 'map'.

marginal

is the name of a training data frame dimension or index.

Examples

Run this code
# NOT RUN {
data(iris)

## set data frame and labels
df <- subset(iris,select=-Species)
labels <- subset(iris,select=Species)

## build a map
m <- map.build(df, labels, xdim=15, ydim=10, train=1000)

## display marginal distribution of dimension 1
map.marginal(m,1)
# }

Run the code above in your browser using DataLab