Skip to content

Instantly share code, notes, and snippets.

@Nowosad
Created September 2, 2018 18:39
Show Gist options
  • Save Nowosad/3cdc8c88ff9980fd6e398cf1b36ece5c to your computer and use it in GitHub Desktop.
Save Nowosad/3cdc8c88ff9980fd6e398cf1b36ece5c to your computer and use it in GitHub Desktop.
library(gganimate)
#> Loading required package: ggplot2
library(ggplot2)
ggplot(diamonds, aes(cut, carat)) +
        geom_point(col = "red") +
        geom_boxplot() + 
        transition_layers(layer_length = 1, transition_length = 1)
#> Error in `$<-.data.frame`(`*tmp*`, ".phase", value = "raw"): replacement has 1 row, data has 0

Created on 2018-09-02 by the reprex package (v0.2.0).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment