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.
aes_pcp(
x = pcp_x,
y = pcp_y,
yend = pcp_yend,
class = pcp_class,
group = pcp_id,
level = pcp_level,
label = pcp_level,
...
)
x axis
y axis
end point of line segment
specifying type of the variable
identifier
character string of factor levels
label for factors
other aesthetics are directly passed on to ggplot2
's mapping
a list of default mappings for all required aesthetics
library(ggplot2)
iris |>
pcp_select(tidyselect::everything()) |>
pcp_scale() |>
pcp_arrange() |>
ggplot(aes_pcp(colour = Species)) +
geom_pcp() +
theme_pcp()