labs-utils: Generate ggplot title and label instructions

.buildLabsR Documentation

Generate ggplot title and label instructions

Description

Generate ggplot title and label instructions

Usage

.buildLabs(
  x = NULL,
  y = NULL,
  color = NULL,
  shape = NULL,
  size = NULL,
  fill = NULL,
  group = NULL,
  title = NULL,
  subtitle = NULL
)

Arguments

x

The character label for the horizontal axis.

y

x The character label for the vertical axis.

color

The character title for the color scale legend.

shape

The character title for the point shape legend.

size

The character title for the point size legend.

fill

The character title for the color fill legend.

group

The character title for the group legend.

title

The character title for the plot title.

subtitle

The character title for the plot subtitle

Details

If any argument is NULL, the corresponding label is not set.

Value

Title and label instructions for ggplot as a character value.

Author(s)

Kevin Rue-Albrecht

Examples

cat(.buildLabs(y = "Title for Y axis", color = "Color label"))

csoneson/iSEE documentation built on Dec. 13, 2024, 6:14 a.m.