nowt | R Documentation |
Add a final link to a dplyr or ggplot chain to make testing chains nice.
nowt(x = NULL)
x |
A dplyr or ggplot2 object |
Credit for the function goes to Duncan Garmonsway and Hadley Wickham
Garmonsway (2019, Jan. 31). Duncan Garmonsway: Add nowt() to your tidy pipelines. Retrieved from https://nacnudus.github.io/duncangarmonsway/posts/2019-01-31-add-nowt-to-your-tidy-pipelines/
a dplyr result or ggplot object that is the same as it went into the function.
Duncan Garmonsway
library(dplyr) library(ggplot2) data(mtcars) mtcars %>% group_by(cyl) %>% summarise(mean(mpg)) %>% # rename(mean_mpg = mean(mpg)) %>% nowt() p <- ggplot(mtcars, aes(x = disp, y = mpg)) + geom_point() + # scale_x_continuous("Displacement") + nowt() p
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.