plot_flower: Flower plot

Description Usage Arguments Value Examples

View source: R/plotflower.R

Description

Flower plot

Usage

1
2
plot_flower(.Data, title = NA, legend_include = TRUE, colors = NA,
  fixed_colors = FALSE, filename = NA)

Arguments

.Data

data frame containing scores to be plotted. Column names should include "score", "weight", "category", and "label"

title

optional title for the plot

legend_include

logical, whether to include a plot legend, defaults to TRUE

colors

an optional color palette to be used for the petal colors

fixed_colors

if TRUE, then use a discrete fixed color palette for coloring petals based on petal categories; defaults to FALSE,

filename

if not NA, save the figure using this filename (relative or absolute)

Value

ggplot object of the flowerplot

Examples

1
2
data(ohi)
plot_flower(ohi, "OHI Example")

mbjones/flowers documentation built on Dec. 23, 2019, 10:24 p.m.