aes_pcp | R Documentation |
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 |
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 |
a list of default mappings for all required aesthetics
ggplot2::aes()
library(ggplot2) iris |> pcp_select(tidyselect::everything()) |> pcp_scale() |> pcp_arrange() |> ggplot(aes_pcp(colour = Species)) + geom_pcp() + theme_pcp()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.