diff --git a/dev/articles/profiling.html b/dev/articles/profiling.html index 56f9f0c313..bbbe95e20d 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 e3658c79db..90a7ccc676 100644 --- a/dev/news/index.html +++ b/dev/news/index.html @@ -67,7 +67,8 @@
The summary()
method for ggplots is now more terse about facets (@teunbrand, #5989).
Built-in theme_*()
functions now have ink
and paper
arguments to control foreground and background colours respectively (@teunbrand)
The summary()
method for ggplots is now more terse about facets (@teunbrand, #5989).
guide_bins()
, guide_colourbar()
and guide_coloursteps()
gain an angle
argument to overrule theme settings, similar to guide_axis(angle)
(@teunbrand, #4594).
coord_*(expand)
can now take a logical vector to control expansion at any side of the panel (top, right, bottom, left) (@teunbrand, #6020)
benchplot(ggplot(mtcars, aes(mpg, wt)) + geom_point())
#> step user.self sys.self elapsed
-#> 1 construct 0.003 0 0.003
+#> 1 construct 0.002 0 0.003
#> 2 build 0.018 0 0.019
-#> 3 render 0.020 0 0.019
+#> 3 render 0.018 0 0.019
#> 4 draw 0.020 0 0.020
-#> 5 TOTAL 0.061 0 0.061
+#> 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.020 0 0.020
-#> 3 render 0.046 0 0.046
-#> 4 draw 0.037 0 0.037
-#> 5 TOTAL 0.105 0 0.105
+#> 1 construct 0.002 0 0.003
+#> 2 build 0.020 0 0.021
+#> 3 render 0.045 0 0.045
+#> 4 draw 0.035 0 0.035
+#> 5 TOTAL 0.102 0 0.104
# 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
-#> 2 build 0.019 0 0.019
-#> 3 render 0.019 0 0.019
-#> 4 draw 0.021 0 0.020
-#> 5 TOTAL 0.061 0 0.060
+#> 1 construct 0.002 0 0.003
+#> 2 build 0.018 0 0.019
+#> 3 render 0.018 0 0.018
+#> 4 draw 0.020 0 0.020
+#> 5 TOTAL 0.058 0 0.060