plot_circ_points: Plot objects (as points) arranged on a circle

View source: R/plot_fun.R

plot_circ_pointsR Documentation

Plot objects (as points) arranged on a circle

Description

plot_circ_points arranges a number of n on a circle (defined by its origin coordinates and radius).

Usage

plot_circ_points(
  n = 4,
  x_org = 0,
  y_org = 0,
  radius = 1,
  show_axes = FALSE,
  show_label = FALSE,
  ...
)

Arguments

n

The number of points (or shapes defined by pch) to plot.

x_org

The x-value of circle origin.

y_org

The y-value of circle origin.

radius

The circle radius.

show_axes

Show axes? Default: show_axes = FALSE.

show_label

Show a point label? Default: show_label = FALSE.

...

Additional aesthetics (passed to points of graphics).

Details

The ... is passed to points of the graphics package.

See Also

Other plot functions: plot_charmap(), plot_chars(), plot_fn(), plot_fun(), plot_n(), plot_text(), plot_tiles(), theme_clean(), theme_ds4psy(), theme_empty()

Examples

plot_circ_points(8)  # default

# with aesthetics of points():
plot_circ_points(n =  8, r = 10, cex = 8, 
                 pch = sample(21:25, size = 8, replace = TRUE), bg = "deeppink")
plot_circ_points(n = 12, r = 8, show_axes = TRUE, show_label = TRUE,
                 cex = 6, pch = 21, lwd = 5, col = "deepskyblue", bg = "gold")


hneth/ds4psy documentation built on May 6, 2024, 8:13 a.m.