plot_cycle_cols: Recycle color scales over multiple scatter plots

View source: R/plot_cycle_cols.R

plot_cycle_colsR Documentation

Recycle color scales over multiple scatter plots

Description

Use cases include PCA / MDS plots with multiple factors

Usage

plot_cycle_cols(df, X, Y, myLabel, colour_vec)

Arguments

df

data frame

X

x axis mapping

Y

y axis mapping

myLabel

TBC: labelling functionality

colour_vec

vector of values to colour points by.

Details

see tidyExt vignette

Value

cowplot list of ggplots

Examples

require(ggplot2);
my_df <- mpg |> dplyr::mutate(year=factor(year), cyl=factor(cyl))
my_features <- c('year','drv','cyl','manufacturer')

plot_cycle_cols(df = my_df,  X='cty',Y='hwy', myLabel = 'manufacturer', colour_vec = my_features)

bansell/tidyExt documentation built on July 12, 2024, 12:58 p.m.