From 0f410c5abe60bebbd4c98d546957a5ca496c270c Mon Sep 17 00:00:00 2001 From: Teun van den Brand Date: Fri, 7 Jun 2024 10:26:42 +0200 Subject: [PATCH] amend examples --- R/guide_marquee.R | 4 ++-- man/guide_marquee.Rd | 9 ++------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/R/guide_marquee.R b/R/guide_marquee.R index 274ac15..2703a82 100644 --- a/R/guide_marquee.R +++ b/R/guide_marquee.R @@ -83,9 +83,9 @@ #' base + guides(colour = "marquee") + #' theme(plot.subtitle = element_marquee(style = st)) #' -#' # Splicing in labels +#' # Splicing in labels by number (!!2) or label (!!subcompact) #' base + aes(colour = class) + -#' labs(colour = "Cars including !!2 and !!6 vehicles") + +#' labs(colour = "Cars including !!2 and !!subcompact vehicles") + #' guides(colour = "marquee") #' #' # Using automatic detection diff --git a/man/guide_marquee.Rd b/man/guide_marquee.Rd index 63001a4..9d75b51 100644 --- a/man/guide_marquee.Rd +++ b/man/guide_marquee.Rd @@ -115,19 +115,14 @@ base + guides(colour = guide_marquee(style = st)) base + guides(colour = "marquee") + theme(plot.subtitle = element_marquee(style = st)) -# Splicing in labels +# Splicing in labels by number (!!2) or label (!!subcompact) base + aes(colour = class) + - labs(colour = "Cars including !!2 and !!6 vehicles") + + labs(colour = "Cars including !!2 and !!subcompact vehicles") + guides(colour = "marquee") # Using automatic detection base + aes(colour = class) + labs(colour = "Cars including suv and minivan vehicles") + guides(colour = guide_marquee(detect = TRUE)) - -# Automatic detection is not always a good idea -base + - labs(colour = "Kerfuffles 4 the riffraff from frankfurt") + - guides(colour = guide_marquee(detect = TRUE)) \dontshow{\}) # examplesIf} }