Skip to content

Instantly share code, notes, and snippets.

@njtierney
Created August 13, 2020 13:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save njtierney/825fb02bdd2cf9dbc0fcc71d26ede215 to your computer and use it in GitHub Desktop.
Save njtierney/825fb02bdd2cf9dbc0fcc71d26ede215 to your computer and use it in GitHub Desktop.
library(tidyverse)
library(palmerpenguins)
library(latex2exp)

ggplot(na.omit(penguins),
       aes(x = bill_length_mm,
           y = bill_depth_mm,
           colour = sex)) + 
  geom_line() +
  scale_colour_discrete(
    name = "Cross validation with", 
    labels = lapply(c(
      '$\\textit{I}\\rightarrow\\textit{CV}$',
      '$\\textit{CV} \\circlearrowright \\textit{I}$'
      ), TeX))

Created on 2020-08-13 by the reprex package (v0.3.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment