diff --git a/dev/articles/profiling.html b/dev/articles/profiling.html index 9ce6f33604..a2a1c459aa 100644 --- a/dev/articles/profiling.html +++ b/dev/articles/profiling.html @@ -130,7 +130,7 @@
In general, a minimal plot is used so that profiles are focused on +
In general, a minimal plot is used so that profiles are focused on low-level, general code, rather than implementations of specific geoms. This might be expanded at the point where improving performance of specific geoms becomes a focus. Further, the profile focuses on the diff --git a/dev/news/index.html b/dev/news/index.html index 3bee6ffed9..b5aa3d6f0f 100644 --- a/dev/news/index.html +++ b/dev/news/index.html @@ -67,7 +67,8 @@
coord_*(expand)
can now take a logical vector to control expansion at any side of the panel (top, right, bottom, left) (@teunbrand, #6020)
(Breaking) The defaults for all geoms can be set at one in the theme. (@teunbrand based on pioneering work by @dpseidel, #2239)
theme(geom)
argument is used to track these defaults.element_geom()
function can be used to populate that argument.benchplot(ggplot(mtcars, aes(mpg, wt)) + geom_point())
#> step user.self sys.self elapsed
-#> 1 construct 0.002 0 0.002
-#> 2 build 0.020 0 0.020
-#> 3 render 0.020 0 0.020
-#> 4 draw 0.020 0 0.021
-#> 5 TOTAL 0.062 0 0.063
+#> 1 construct 0.002 0 0.003
+#> 2 build 0.019 0 0.019
+#> 3 render 0.018 0 0.019
+#> 4 draw 0.019 0 0.020
+#> 5 TOTAL 0.058 0 0.061
benchplot(ggplot(mtcars, aes(mpg, wt)) + geom_point() + facet_grid(. ~ cyl))
#> step user.self sys.self elapsed
-#> 1 construct 0.002 0 0.002
-#> 2 build 0.021 0 0.021
-#> 3 render 0.046 0 0.046
-#> 4 draw 0.037 0 0.036
-#> 5 TOTAL 0.106 0 0.105
+#> 1 construct 0.002 0 0.003
+#> 2 build 0.020 0 0.020
+#> 3 render 0.044 0 0.044
+#> 4 draw 0.035 0 0.035
+#> 5 TOTAL 0.101 0 0.102
# With tidy eval:
p <- expr(ggplot(mtcars, aes(mpg, wt)) + geom_point())
benchplot(!!p)
#> step user.self sys.self elapsed
-#> 1 construct 0.002 0 0.002
+#> 1 construct 0.002 0 0.003
#> 2 build 0.019 0 0.019
-#> 3 render 0.019 0 0.019
+#> 3 render 0.019 0 0.018
#> 4 draw 0.020 0 0.020
#> 5 TOTAL 0.060 0 0.060
If TRUE
, the default, adds a small expansion factor to
the limits to ensure that data and axes don't overlap. If FALSE
,
-limits are taken exactly from the data or xlim
/ylim
.
xlim
/ylim
.
+Giving a logical vector will separately control the expansion for the four
+directions (top, left, bottom and right). The expand
argument will be
+recycled to length 4 if necessary. Alternatively, can be a named logical
+vector to control a single direction, e.g. expand = c(bottom = FALSE)
.
If TRUE
, the default, adds a small expansion factor to
the limits to ensure that data and axes don't overlap. If FALSE
,
-limits are taken exactly from the data or xlim
/ylim
.
xlim
/ylim
.
+Giving a logical vector will separately control the expansion for the four
+directions (top, left, bottom and right). The expand
argument will be
+recycled to length 4 if necessary. Alternatively, can be a named logical
+vector to control a single direction, e.g. expand = c(bottom = FALSE)
.
If TRUE
, the default, adds a small expansion factor to
the limits to ensure that data and axes don't overlap. If FALSE
,
-limits are taken exactly from the data or xlim
/ylim
.
xlim
/ylim
.
+Giving a logical vector will separately control the expansion for the four
+directions (top, left, bottom and right). The expand
argument will be
+recycled to length 4 if necessary. Alternatively, can be a named logical
+vector to control a single direction, e.g. expand = c(bottom = FALSE)
.
If TRUE
, the default, adds a small expansion factor to
the limits to ensure that data and axes don't overlap. If FALSE
,
-limits are taken exactly from the data or xlim
/ylim
.
xlim
/ylim
.
+Giving a logical vector will separately control the expansion for the four
+directions (top, left, bottom and right). The expand
argument will be
+recycled to length 4 if necessary. Alternatively, can be a named logical
+vector to control a single direction, e.g. expand = c(bottom = FALSE)
.
If TRUE
, the default, adds a small expansion factor to
the limits to ensure that data and axes don't overlap. If FALSE
,
-limits are taken exactly from the data or xlim
/ylim
.
xlim
/ylim
.
+Giving a logical vector will separately control the expansion for the four
+directions (top, left, bottom and right). The expand
argument will be
+recycled to length 4 if necessary. Alternatively, can be a named logical
+vector to control a single direction, e.g. expand = c(bottom = FALSE)
.
If TRUE
, the default, adds a small expansion factor to
the limits to ensure that data and axes don't overlap. If FALSE
,
-limits are taken exactly from the data or xlim
/ylim
.
xlim
/ylim
.
+Giving a logical vector will separately control the expansion for the four
+directions (top, left, bottom and right). The expand
argument will be
+recycled to length 4 if necessary. Alternatively, can be a named logical
+vector to control a single direction, e.g. expand = c(bottom = FALSE)
.