From b95af50eaebfb25a1036241622d3b65dc99e571d Mon Sep 17 00:00:00 2001
From: olivroy <52606734+olivroy@users.noreply.github.com>
Date: Tue, 19 Dec 2023 16:09:31 -0500
Subject: [PATCH] Remove note about old ggplot2
---
vignettes/examples.Rmd | 15 +--------------
1 file changed, 1 insertion(+), 14 deletions(-)
diff --git a/vignettes/examples.Rmd b/vignettes/examples.Rmd
index 7ea487e..d19aaeb 100644
--- a/vignettes/examples.Rmd
+++ b/vignettes/examples.Rmd
@@ -899,24 +899,11 @@ p + geom_label_repel(
### Label jittered points
-
- **Warning:** This example will not work with ggplot2 version 2.2.1 or older.
-
-
-To get the latest development version of ggplot2, try:
-
-```{r ggplot2, echo=TRUE, eval=FALSE}
-# install.packages("devtools")
-devtools::install_github("tidyverse/ggplot2")
-```
-
-If your ggplot2 is newer than 2.2.1, try this example:
-
```{r jitter, echo=TRUE, fig.width=6, fig.height=5}
mtcars$label <- rownames(mtcars)
mtcars$label[mtcars$cyl != 6] <- ""
-# New! (not available in ggplot2 version 2.2.1 or earlier)
+# Available since ggplot2 2.2.1
pos <- position_jitter(width = 0.3, seed = 2)
ggplot(mtcars, aes(factor(cyl), mpg, color = label != "", label = label)) +