Description Usage Arguments Value Examples
Change the ColorBrewer palette being used
1 2  | 
sg | 
 streamgraph object  | 
palette | 
 UNUSED; being removed in next release; use   | 
axis_color | 
 color of the axis text (defaults to "  | 
tooltip_color | 
 color of the tooltip text (defaults to "  | 
label_color | 
 color of the label text for the legend select menu (defaults to "  | 
streamgraph object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  | ## Not run: 
library(dplyr)
library(streamgraph)
ggplot2movies::movies %>%
select(year, Action, Animation, Comedy, Drama, Documentary, Romance, Short) %>%
  tidyr::gather(genre, value, -year) %>%
  group_by(year, genre) %>%
  tally(wt=value) %>%
  ungroup %>%
  mutate(year=as.Date(sprintf("%d-01-01", year))) -> dat
streamgraph(dat, "genre", "n", "year") %>%
  sg_colors("PuOr")
## End(Not run)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.