From 1777639cbe868e7d59f67b7f2680d33396634f39 Mon Sep 17 00:00:00 2001 From: Liang Zhang Date: Fri, 2 Feb 2024 11:04:15 +0800 Subject: [PATCH] Fix a typo of punctuation error --- scales-position.qmd | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scales-position.qmd b/scales-position.qmd index e9c9c720..fd3e86a4 100644 --- a/scales-position.qmd +++ b/scales-position.qmd @@ -735,8 +735,7 @@ ggplot(mpg, aes(x = drv, y = hwy)) + geom_boxplot(width = .4) \index{Axis!labels} \index{Legend!keys} -The limits, breaks. -and labels for a discrete position scale can be set using the `limits`, `breaks`, and `labels` arguments. +The limits, breaks, and labels for a discrete position scale can be set using the `limits`, `breaks`, and `labels` arguments. For the most part these behave identically to the corresponding arguments for numeric scales (@sec-numeric-position-scales), though there are some differences. For example, the limits of a discrete scale are not defined in terms of endpoints, but instead correspond to the set of allowable values for that variable. Accordingly, ggplot2 expects that the `limits` of a discrete scale should be a character vector that enumerates all possible values in the order they should appear: