streamgraph
streamgraph copied to clipboard
ggplot2::movies now is its own CRAN pkg: need update in streamgraph vignette
Really enjoy your work. Playing with your vignette last night and found a dependency change
This is from Data Expectations section of vignette; needs a sligth update in sourcing movie data from ggplot2:
ggplot2::movies %>% # change this line
select(year, Action, Animation, Comedy, Drama, Documentary, Romance, Short) %>%
tidyr::gather(genre, value, -year) %>%
group_by(year, genre) %>%
tally(wt=value) %>%
ungroup %>%
streamgraph("genre", "n", "year") %>%
sg_axis_x(20) %>%
sg_fill_brewer("PuOr") %>%
sg_legend(show=TRUE, label="Genres: ")
it now should be
install.packages("ggplot2movies")
ggplot2movies::movies %>%
select(year, Action, Animation, Comedy, Drama, Documentary, Romance, Short) %>%
tidyr::gather(genre, value, -year) %>%
group_by(year, genre) %>%
tally(wt=value) %>%
ungroup %>%
streamgraph("genre", "n", "year") %>%
sg_axis_x(20) %>%
sg_fill_brewer("PuOr") %>%
sg_legend(show=TRUE, label="Genres: ")
thx. i had changed it in the README.md but didn't dig into the vignette.