Questions tagged [gganimate]

gganimate is a package for R that allows to produce animated graphics with ggplot2. It is based on the animation package.

gganimate is a package for R that allows to produce animated graphics with ggplot2. It is based on the animation package.

Repositories:

549 questions
0
votes
1 answer

Publishing Shiny app to shinyapps.io with animation generated with gganimate

I am trying to deploy my Shiny app to shinyapps.io. This app works fine locally, and also the deployment process seems to go well: However, when I access the website online, I get an error message: An error has occurred. Check your logs or contact…
user8248672
0
votes
0 answers

gganimate fails to inherit ggplot2 grouping

I'm trying to make an animation using the iris dataset and gganimate. This is a sample of my code: library(gganimate) library(ggplot2) library(dplyr) iris %>% ggplot(aes(Sepal.Length, Petal.Length, col = Species)) + geom_point() + …
NelsonGon
  • 13,015
  • 7
  • 27
  • 57
0
votes
0 answers

global option for gganimate renderer (no loop)

I would like to stablish global options to a bunch of animations rendered using gganimate. The most important part is no-loop option but ...can not add to list of parameters this way. Every other option worked. options(gganimate.dev_args =…
Forge
  • 1,587
  • 1
  • 15
  • 36
0
votes
1 answer

gganimate stacked bar chart over time

I am trying to animate a stacked bar chart over time. In particular, I would like each stack to first build up in a given year and then transition to the next year. Also, I would like to make sure the past bars are visible. The following code plots…
Ercan
  • 1
0
votes
0 answers

r Permission denied loading gganimate

follow my previous question, now I am able to manually download gganimate and unzip to my PC. When I try to load h package, there is an error: shell("R CMD build gganimate") checking for file 'gganimate/DESCRIPTION' ... OK preparing…
0
votes
1 answer

r gganimate (0.9.9.9) and transform_polygon for radar charts

I'd like to use gganimate to transition through states in a radar chart. Consider the following example from a post here on Stack Overflow by Curycu : Closing the lines in a ggplot2 radar / spider…
Alan Dursun
  • 655
  • 3
  • 14
0
votes
1 answer

Adding p-values to compare groups means at different at times in gganimate gif with boxplots/violins

My current code for printing violins using gganimate looks like this library(ggplot2); library(gganimate); library(ggpubr) ggplot(dat2, aes(x=diet, y=bicep, fill=diet)) + geom_violin() + scale_fill_manual(values=c("#00AFBB", "#FC4E07")) + …
DiscoR
  • 247
  • 2
  • 11
0
votes
2 answers

gganimate won't render when combining geom_point and geom_sf

I'm trying to animate points moving over a map in gganimate. In teh following example, animating just the points works and a static plot of the points and map works, but combining them fails with the error Error in mapply(FUN = f, ..., SIMPLIFY =…
0
votes
2 answers

transition_reveal does not work with both geom_point and geom_smooth

I can make through transition_reveal appearing geom_points. Looks nice, but I also wanna add exponential regression and visualise both simultaneously. Transition_reveal makes render neither with both smooth and points, nor with just smooth. Its…
0
votes
0 answers

using ggplot to create animation

devtools::install_github('thomasp85/gganimate') library(gganimate) library(ggplot) set.seed(123) rain.data <- data.frame(ID = 1:50, year = rep(1981, times = 365*50), doy = rep(1:365, times = 50), rain = rnorm(365*50)) For…
89_Simple
  • 3,393
  • 3
  • 39
  • 94
0
votes
1 answer

Why connects geom_line not to next point when using in gganimate?

When I have this data frame library(ggplot) library(gganimate) data <- tribble( ~year, ~num, 1950, 56, 1951, 59, 1952, 64, 1953, 76, 1954, 69, 1955, 74, 1956, 78, 1957, 98, 1958, 85, 1959, 88, 1960, 91, 1961, 87, 1962, 99, 1963, 104 ) and want…
MarBlo
  • 4,195
  • 1
  • 13
  • 27
0
votes
0 answers

Can't install gganimate dependencies

I'm trying to install gganimate on R 3.4.4. If I try devtools::install_github('thomasp85/gganimate'), I get: ERROR: dependencies ‘transformr’, ‘sf’, ‘gifski’ are not available for package ‘gganimate’ Attempting to install each of them leads to a…
snapcrack
  • 1,761
  • 3
  • 20
  • 40
0
votes
1 answer

Positioning of violin plots when using gganimate

I am using ggplot2 3.0.0 and gganimate 0.1.1. Here is a MWE: library(ggplot2) library(gganimate) df <- data.frame(year = rep(2000:2010, each = 50), value = rnorm(550)) ggplot(df, aes(x = 0, y = value, frame = factor(year))) + …
Tim Hargreaves
  • 292
  • 3
  • 11
0
votes
1 answer

How to tween a data.frame with date format timepoints?

I would like to use tweenr with a date format variable for the timepoints. However, tweenr::tween_elements throws an error, that I cannot decipher: > Error in `/.difftime`(diff(timerange), nframes) : second argument of / cannot be a "difftime"…
chamaoskurumi
  • 2,271
  • 2
  • 23
  • 30
0
votes
1 answer

gganimate within Shiny app - cannot find ImageMagick

I would like to insert animation plot in my Shiny app published on the server. However, any try of deploying ends up in the following: I cannot find ImageMagick with convert = 'convert' Warning in im.convert(img.files, output =…
Kuba_
  • 886
  • 6
  • 22
1 2 3
36
37