-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Area chart does not render, possible due to an issue with vctrs #1778
Comments
Looks like it works without the library(ggplot2)
library(gganimate)
library(quantmod)
CHAI <- getSymbols("SBUX" , from = "2020-1-1" , to = "2021-1-1" , auto.assign=F)
CHAI <- as.data.frame(CHAI)
CHAI <- tibble::rownames_to_column(CHAI, "date")
CHAI$date <- as.Date(CHAI$date)
head(CHAI)
CARTOON <- ggplot(CHAI, aes(y = SBUX.Close, x = date)) +
# geom_area(color="pink", size=1.2 , fill="pink" , alpha=0.3) +
geom_point(color = "#8F157E", size = 4) +
labs(x = "Time", y = "Close Price") +
theme_bw() +
transition_reveal(date)
animate(CARTOON, duration = 7 , fps = 30) If you uncomment the line above it fails at the > animate(CARTOON, duration = 7 , fps = 30)
Error in normalizePath(png_files, mustWork = TRUE) :
path[4]="/var/folders/41/qx_9ygp112nfysdfgxcssgwc0000gn/T//RtmpvpPgQ3/f246e9ea108/gganim_plot0004.png": No such file or directory
In addition: There were 50 or more warnings (use warnings() to see the first 50)
> warnings()
Warning messages:
1: Problem while converting geom to grob.
ℹ Error occurred in the 1st layer.
Caused by error in `unit()`:
! 'x' and 'units' must have length > 0
2: Problem while converting geom to grob.
ℹ Error occurred in the 1st layer. @thomasp85 is this a gganimate bug? |
Closing in favor of thomasp85/gganimate#476 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The animated chart does not render properly and it creates the following error messages:
Error occurred in the 1st layer.
Caused by error in
unit()
:'x' and 'units' must have length > 0
Problem while converting geom to grob.
The text was updated successfully, but these errors were encountered: