Draw flower plot.

flower_plot(
  sample,
  value,
  labels,
  start = 90,
  a = 0.5,
  b = 2,
  r = 1.5,
  width = 10,
  height = 10,
  ellipse_col = rgb(135, 206, 235, 150, max = 255),
  circle_col = rgb(0, 162, 214, max = 255),
  circle_text_cex = 1
)

Arguments

sample

A vector contains the name of each petal

value

A vector contains the value of each petal

labels

The label of the core

start

Start deg, default is 90

a

Width of the petal, default is 0.5

b

Length of the petal, default is 2

r

Radius of the core, default is 1.5

width

Width of the plot, default is 10

height

Heigth of the plot, default is 10

ellipse_col

Color of the petal

circle_col

Color of the core

circle_text_cex

Text size of label around the petal, default is 1

Value

Flower plot

Examples

flower_plot(c("WSM419", "A321", "M1", "M2", "M22", "M58", "M102", "M161",
"KH36b", "KH36c", "KH36d", "KH53a", "KH53b"),c(519, 556, 83, 62, 415, 425,
357, 441, 22, 41, 33, 44, 43), 90, 0.5, 2, labels="core")