plot_dot_plot_2d: Plot 2d dot plot

View source: R/plot-dot-plot.R

plot_dot_plot_2dR Documentation

Plot 2d dot plot

Description

Plots a dot plot of two categorical variables. Numeric values can be displayed via alpha, color and size.

Usage

plot_dot_plot_2d(
  df,
  x,
  y,
  alpha.by = NULL,
  alpha.trans = "identity",
  color.by = NULL,
  color.trans = "identity",
  shape.by = NULL,
  size.by = NULL,
  size.trans = "reverse",
  pt.alpha = 0.9,
  pt.color = "black",
  pt.clrp = "default",
  pt.clrsp = "plasma",
  pt.shape = 19,
  pt.size = 3,
  transform.with = NULL,
  arrange.y = FALSE,
  arrange.by = NULL,
  reverse.all = FALSE,
  reverse.within = FALSE,
  ...
)

Arguments

df

A data.frame.

x, y

Character value. Variable to be plotted on the respective axis.

arrange.y

Logical. If TRUE the labels of y are arranged by their appearances in the groups of x.

arrange.by

Character value or NULL. If character, denotes the numeric variable by which the labels of y are arranged within the groups of x.

reverse.all

Logical. If TRUE labels are displayed from bottom to top. If FALSE, labels are displayed from top to bottom.

reverse.within

Logical. If TRUE, labels are arranged within the groups in a descending manner. If FALSE, labels are arranged within the groups in an ascending manner. (regarding the numeric variables of arrange.by).

Value

A ggplot.


kueckelj/confuns documentation built on June 28, 2024, 9:19 a.m.