Learn R Programming

ggVennDiagram (version 0.5.0)

plot_venn: plot codes

Description

plot codes

Usage

plot_venn(
  region_data,
  category,
  counts,
  show_intersect,
  label,
  label_geom,
  label_alpha,
  ...
)

Arguments

region_data

a list of two dataframes, which were used to plot polygon and label latter.

category

name of Set

counts

counts of items for every combinations

show_intersect

whether add a hidden text to polygons in the plot, the text can be further visualized by `plotly::ggplotly()`

label

select one from c("count","percent","both")

label_geom

choose from geom_label and geom_text

label_alpha

set 0 to remove label background

...

Other arguments passed on to the polygon layer.

Value

ggplot object