create_plot

create_plot(
  DF_prepared,
  DF,
  ID_var,
  group_var,
  area_var,
  x_var,
  separation_factor = 5,
  width_plot = 100,
  label_circles = FALSE,
  max_overlaps = 5,
  size_text = 3,
  highlight_ID = NULL
)

Arguments

DF_prepared

output of prepare_data()

DF

output of create_polygons()

ID_var

ID variable

group_var

group variable

area_var

area variable

x_var

x axis variable

separation_factor

how much separation between groups

width_plot

reduce x for plotting by this ratio

label_circles

Should we draw labels for the circles

max_overlaps

overlaps in geom_text_repel

size_text

size text labels

highlight_ID

ID's to highlight in plot

Value

ggplot object