lekgrps: Create optional barplot for 'lekprofile' groups

Description Usage Arguments Value Examples

View source: R/NeuralNetTools_utils.R

Description

Create optional barplot of constant values of each variable for each group used with lekprofile

Usage

1
lekgrps(grps, position = "dodge", grp_nms = NULL)

Arguments

grps

data.frame of values for each variable in each group used to create groups in lekprofile

position

chr string indicating bar position (e.g., 'dodge', 'fill', 'stack'), passed to geom_bar

grp_nms

optional chr string of alternative names for groups in legend

Value

A ggplot object

Examples

1
2
3
4
5
## enters used with kmeans clustering
x <- neuraldat[, c('X1', 'X2', 'X3')]
grps <- kmeans(x, 6)$center

lekgrps(grps)

Example output



NeuralNetTools documentation built on Jan. 6, 2022, 5:06 p.m.