View source: R/plot_cycle_cols.R
plot_cycle_cols | R Documentation |
Use cases include PCA / MDS plots with multiple factors
plot_cycle_cols(df, X, Y, myLabel, colour_vec)
df |
data frame |
X |
x axis mapping |
Y |
y axis mapping |
myLabel |
TBC: labelling functionality |
colour_vec |
vector of values to colour points by. |
see tidyExt vignette
cowplot list of ggplots
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.