plot_dots: Plot dotchart

View source: R/plot.R

plot_dotsR Documentation

Plot dotchart

Description

This is a simplified and customized version of graphics::dotchart().

Usage

plot_dots(
  x,
  xlim = c(0, max(x)),
  main = "Dotchart",
  xlab = "Frequency",
  col = palette.colors(2L)[2L],
  pch = 19L
)

Arguments

x

numeric, values to plot.

xlim

numeric(2), limits of the x-axis.

main

character(1), plot title.

xlab

character(1), x-axis label.

col

integer/character, color of the dots.

pch

integer/character, point character/symbol of the dots.

Value

nothing, used for its side-effects (plotting).

See Also

graphics::dotchart()

Examples

x <- c(Foo = 3, Bar = 5)
plot_dots(x, xlim = c(0, 8))

ampel-leipzig/ameld documentation built on Aug. 23, 2024, 7:31 p.m.