theme_pcp: Theme for parallel coordinate plots

View source: R/theme_pcp.R

theme_pcpR Documentation

Theme for parallel coordinate plots

Description

The function theme_pcp provides a wrapper for thematic choices suitable for parallel coordinate plots. In particular, the labeling of axes in parallel coordinate plot is quite un-informative. In the default theme axes labels are based on variable names derived during the data wrangling step.

Usage

theme_pcp(base_size = 11, base_family = "")

Arguments

base_size

base font size, given in pts.

base_family

base font family

Value

A ggplot2 theme object based on ggplot2::theme_bw() without y axis and x axes labels.

See Also

ggplot2::theme_bw()

Examples

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

# plot with the default ggplot2 theme
gg
# better:
gg + theme_pcp()

ggpcp documentation built on Nov. 28, 2022, 5:05 p.m.