Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSuggestion: Data manipulation #79
Comments
|
I agree that a plotting tool should not modify original data and |
|
Makes sense, implemented in Thanks, Victor |
The actual implementation saves in the same objet the data manipulation realized with dplyr, while it would be better not to.
It also creates two code blocks, when it would be better to have only one.
Example follows.
Actual:
diamonds <- diamonds %>%
filter(carat < 4)
ggplot(diamonds) +
aes(x = carat) +
geom_histogram()
Suggestion:
diamonds %>%
filter (carat < 4) %>%
ggplot () +
aes(x = carat) +
geom_histogram()