aes_pcp {ggpcp}R Documentation

Wrapper for aes defaults

Description

The function provides a mapping from ggpcp internal variable names to the variables' functional purpose in the grammar of graphics framework. Any of the defaults can be overwritten by the user or flexibly expanded by other aesthetic mappings in the usual manner.

Usage

aes_pcp(
  x = pcp_x,
  y = pcp_y,
  yend = pcp_yend,
  class = pcp_class,
  group = pcp_id,
  level = pcp_level,
  label = pcp_level,
  ...
)

Arguments

x

x axis

y

y axis

yend

end point of line segment

class

specifying type of the variable

group

identifier

level

character string of factor levels

label

label for factors

...

other aesthetics are directly passed on to ggplot2's mapping

Value

a list of default mappings for all required aesthetics

See Also

ggplot2::aes()

Examples

library(ggplot2)
iris |>
  pcp_select(tidyselect::everything()) |>
  pcp_scale() |>
  pcp_arrange() |>
  ggplot(aes_pcp(colour = Species)) +
    geom_pcp() +
    theme_pcp()

[Package ggpcp version 0.2.0 Index]