plot_bee: Beeswarm plot with confidence intervals

View source: R/plot_bee.R

plot_beeR Documentation

Beeswarm plot with confidence intervals

Description

Draw a beeswarm plot

Usage

plot_bee(
  data,
  x,
  y,
  bar.width = 0.5,
  err.width = 0.15,
  xlab = x,
  ylab = y,
  xlabels = levels(data[[x]]),
  se = F,
  cex = 2.5,
  dot = T,
  shape = rep(16, 10),
  bar_graph = F
)

Arguments

data

a dataframe to be used

x

a variable for x-axis

y

a variable for y-axis

bar.width

mean bar width

err.width

error bar width

xlab

x-axis label

ylab

y-axis label

xlabels

labels of x-axis groups

se

SE (T) or 95% CI (F)

cex

size of the dots

dot

revealing dots or not

shape

shape of the dots

bar_graph

bar_graph (T) or beeswarm graph (F)

Value

ggplot object


nephroj/medutils documentation built on Feb. 3, 2024, 8:33 a.m.