streamgraph icon indicating copy to clipboard operation
streamgraph copied to clipboard

ggplot2::movies now is its own CRAN pkg: need update in streamgraph vignette

Open data-steve opened this issue 8 years ago • 1 comments

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: ")

data-steve avatar Apr 08 '16 13:04 data-steve

thx. i had changed it in the README.md but didn't dig into the vignette.

hrbrmstr avatar Apr 08 '16 14:04 hrbrmstr