plot_partition function

Visualization of partition

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 )

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)

Returns

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)
  • Maintainer: Marion Hoffman
  • License: GPL (>= 3)
  • Last published: 2024-05-10