plot_partition {ERPM}R Documentation

Visualization of partition

Description

This function plot the groups of a partition

Usage

plot_partition(
  partition,
  title = NULL,
  group.color = NULL,
  attribute.color = NULL,
  attribute.shape = NULL
)

Arguments

partition

A partition (vector)

title

Character, the title of the plot (default=NULL)

group.color

A vector with the colors of the groups (default=NULL)

attribute.color

A vector, attribute to represent with colors (default=NULL)

attribute.shape

A vector, attribute to represent with shapes (default=NULL)

Value

A plot of the partition

Examples

p <- c(1,1,1,2,2,2,2,3,3,3,4,4,4,4,4,4)
attr1 <- c(1,0,0,1,0,0,1,0,1,0,1,1,1,1,1,2)
attr2 <- c(1,1,1,1,0,0,3,0,1,0,1,1,1,1,1,2)
plot_partition(p,attribute.color = attr1, attribute.shape = attr2)

[Package ERPM version 0.2.0 Index]