flowerplot: Function flowerplot

flowerplotR Documentation

Function flowerplot

Description

Plots numeric matrix as a field of flowers.

Usage

flowerplot(
  x = NULL,
  maximum = NULL,
  rownames = NULL,
  colnames = NULL,
  main = NULL,
  color = NULL,
  color2 = "lightgrey",
  add.numbers = F,
  ncex = 0.8,
  ndigits = 1,
  ncol = "black",
  circle = 0.5,
  reverseLegend = F,
  cex = 0.8,
  cex.legend = 0.8,
  xlim = NULL,
  ylim = NULL,
  dist = 4,
  legend = NULL,
  xshift = 0
)

Arguments

x

Numeric data.frame or matrix containing the values to be displayed.

maximum

Numeric value representing the maximum value. Only needs to be specified when the data does not contain the theoretically possible maximum.

rownames

Character vector of the same length as x, containing the row names to be displayed. If NULL (default) rownames of x are applied.

colnames

Character vector of the same length as x, containing the column names to be displayed. If NULL (default) colnames of x are applied.

main

Character value, containing the title to be displayed. Defaults to NULL.

color

Character vector, containing the colors of petals. If NULL (default) the rainbow palette is applied.

color2

Character value, containing the color of the background petals. If NULL, no background petals are plotted. Defaults to "lightgrey".

add.numbers

Logical value specifying whether to draw numbers next to each petal. Defaults to F.

ncex

Size of fonts. If NA (default) is set to cex.

ndigits

Numeric value specifying the number of digits to be plotted (if add.numbers==T). Defaults to 2.

ncol

Vector containing the color of bars. Defaults to "black".

circle

Numeric value specifying the size of the black circle at the center of each flower. Defaults to 0.

reverseLegend

Logical value specifying whether to reverse the order of legend entries. Defaults to F.

xshift

Numeric value specifying how much to shift flowers to the right. Defaults to 0.

Details

Plots data.frame as a field of flowers. Each column is represented as a separate flower, each row as a flower's petal.

Examples

flowerplot()

AndreasFischer1985/quantqual documentation built on June 20, 2022, 4:55 p.m.