Skip to content

Commit

Permalink
Added guidance for plotting with agg_vec
Browse files Browse the repository at this point in the history
Resolves #141
  • Loading branch information
mitchelloharawild committed May 29, 2020
1 parent 8f21972 commit 4964600
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/aggregate.R
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,9 @@ is_aggregated <- function(x){
vec_data(x)[["agg"]]
}

scale_type.agg_vec <- function(x) "discrete"

scale_type.agg_vec <- function(x) {
abort("Cannot add an aggregated vector to a plot, use format() to plot with your aggregations.")
}
# # Space efficient group identifiers, storing group positions as vectors instead of lists
# group_by_alt <- function(.data, ...){
# .data <- transmute(as_tibble(.data), ...)
Expand Down

0 comments on commit 4964600

Please sign in to comment.