Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Need auto_split() pipeline #42

Closed
hadley opened this issue Aug 20, 2013 · 1 comment
Closed

Need auto_split() pipeline #42

hadley opened this issue Aug 20, 2013 · 1 comment

Comments

@hadley
Copy link
Member

hadley commented Aug 20, 2013

Autosplit should have the basic behaviour as ggplot2: i.e. it should split by every categorical variable in the layer. It should be straightforward - it's similar to by_group but it figures out which variables to split by in connect.

Then we could add branch_line() which would look like:

branch_line <- function(props, ...) {
  node(auto_split(...), mark_line(props))
}

Once we have transform_sort it might look like:

branch_line <- function(props, sort = TRUE, ...) {
  node(
    c(auto_split(), if (order) transform_sort())
    mark_line(props)
  )
}
@wch
Copy link
Contributor

wch commented Sep 5, 2013

Implemented in 3ecea57 and 3f7e1d9.

@wch wch closed this as completed Sep 5, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants