-
Notifications
You must be signed in to change notification settings - Fork 308
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
Error in seq.default(range[1], range[2], length.out = nframes) #307
Comments
I've run into the exact same error |
I am also receiving the same error message. gabo<-ggplot(data=Gabo, aes(x=Lon, y=Lat, colour=year)) + Here comes the gganimate specific bitslabs(title = 'Date: {frame_time}') + animate(gabo,nframes = 200, width=800, height=1000, renderer = gifski_renderer()) Error in seq.default(range[1], range[2], length.out = nframes) : Have you solved this issue or is it still outstanding? |
Can either of you provide a reproducible example ? |
Hi Thomas Thank you for following this up, I worked it out with help from another coder Mike Sumner. The error was fixed by adding %>% filter(!is.na(date)) Code below in full I can also share a rmarkdown html file if this helps? ggplot(data=Year1 %>% filter(!is.na(date)), aes(x=Lon, y=Lat, col=colony)) +
geom_point(size=3) +
geom_polygon(data=world,aes(x=lon, y=lat,group = group), col="darkgrey") +
coord_quickmap()+
lims(x=c(100,180), y=c(-50,40))+
# Here comes the gganimate specific bits
labs(title = "Date: {frame_time}", x = 'longitude', y ='lattitude') +
transition_time(date) +
shadow_mark(alpha=0.2, size = 2)+
ease_aes('linear')
animate(pY1,nframes=200, width=800, height=1000, renderer = gifski_renderer()) |
if you can share your data it would help me debug it 🙂 |
Hi Thomas
More than happy too, I have set up a Googledrive file as the files are quite large just an email address to send it to unless this one works. Just a FYI, the data is owned by the University of Tasmania but more than happy to share with you if it helps others with the same issue. We have all ended up in the R abyss many times over 🙂
https://drive.google.com/drive/folders/1JTnHMnVqyD8IEvBRfQJEAxQThYvMC4zr?usp=sharing
Meet Google Drive – One place for all your files<https://drive.google.com/drive/folders/1JTnHMnVqyD8IEvBRfQJEAxQThYvMC4zr?usp=sharing>
Google Drive is a free way to keep your files backed up and easy to reach from any phone, tablet, or computer. Start with 15GB of Google storage – free.
drive.google.com
Regards
Penny
…________________________________
From: Thomas Lin Pedersen ***@***.***>
Sent: Thursday, 18 March 2021 7:39 PM
To: thomasp85/gganimate ***@***.***>
Cc: Penny Beaver ***@***.***>; Manual ***@***.***>
Subject: Re: [thomasp85/gganimate] Error in seq.default(range[1], range[2], length.out = nframes) (#307)
if you can share your data it would help me debug it 🙂
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#307 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AFIRKDYWKI6OMK3LUJMTCWDTEG34RANCNFSM4G6VOFHQ>.
This email is confidential, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone outside the intended recipient organisation is prohibited and may be a criminal offence. Please delete if obtained in error and email confirmation to the sender. The views expressed in this email are not necessarily the views of the University of Tasmania, unless clearly intended otherwise.
|
Hi @pennybeaver — I do not have access to the data in the link. You may need to change the permissions somehow |
Nevermind, I'm pretty sure I found the culprit. Can I get you to confirm that the error is gone in the development version? |
Hi Thomas
Do you need any more info? Email ***@***.***
Regards
Penny
…Sent from my iPhone
On 19 Mar 2021, at 7:01 pm, Thomas Lin Pedersen ***@***.***> wrote:
Hi @pennybeaver<https://github.com/pennybeaver> — I do not have access to the data in the link. You may need to change the permissions somehow
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#307 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AFIRKD7IOFHU4UCHDIW5XDDTEMAETANCNFSM4G6VOFHQ>.
This email is confidential, and is for the intended recipient only. Access, disclosure, copying, distribution, or reliance on any of it by anyone outside the intended recipient organisation is prohibited and may be a criminal offence. Please delete if obtained in error and email confirmation to the sender. The views expressed in this email are not necessarily the views of the University of Tasmania, unless clearly intended otherwise.
|
Can you install the GitHub version |
I have installed the GitHub version remotes::install_github('thomasp85/gganimate') do I just rerun the code, sorry I have not used remotes:: ? |
Yes, you now have the development version. |
Been trying out package with own panel dataset. Keep running into this error
Produces:
The text was updated successfully, but these errors were encountered: