Visualization of partition
This function plot the groups of a partition
plot_partition( partition, title = NULL, group.color = NULL, attribute.color = NULL, attribute.shape = NULL )
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)A plot of the partition
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)