1 / 6

Animation Norsk statistikermøte, Halden, 11. juni 2013

www.nr.no. Animation Norsk statistikermøte, Halden, 11. juni 2013. Elisabeth Orskaug Thordis Thorarinsdottir Norsk Regnesentral. André Teigland Forskningssjef SAMBA. 6 . Animation. Animation.

yin
Download Presentation

Animation Norsk statistikermøte, Halden, 11. juni 2013

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. www.nr.no Animation Norsk statistikermøte, Halden, 11. juni 2013 Elisabeth Orskaug Thordis Thorarinsdottir Norsk Regnesentral André Teigland Forskningssjef SAMBA

  2. 6. Animation Animation • The package "Animations" contains a variety of functions for animations in statistics. • Severalapproaches to save animations to various formats, e.g. Flash, GIF, HTML pages, PDF and videos. • Onlyanimations in HTML will be shown. For detailsonother formats, seeanimation.pdf.

  3. 6. Animation Animation of time series Animation of daily observed precipitation from 1961-2000. • # Begin animation loop • #Animation in HTML pages. Note the brackets within the parentheses. • saveHTML({ • #set some animation options • ani.options(outdir = getwd()) • # Begin the loop that creates the individual animation graphs • for (k in seq(107, 2067, 53)){ • wks = (k-53*2):(k+53*2) • x = data.grid[data.grid$week %in% wks,] • print(qplot(dato, obs, data=x, ylim=c(0,max(data.grid$obs)))) • cat(k, "\n") • } • #Save the animation graphs • }, img.name = "plotAniPrec", imgdir="animationPrec-temp", outdir=getwd(), htmlfile="animationPrec-temp.html", autobrowse = FALSE, title="") Section 6.1

  4. 6. Animation Animation of time series Animation of weekly observed precipitation from 1961-2000. • Weuseddply() function from ggplot2 to aggregatedailyprecipiation to weeklyprecipitation. • Then make an animationoftheaggregated data. Section 6.2

  5. 6. Animation Animation of spatial map Section 6.3

  6. www.nr.no Thankyou for coming! Lunch! André Teigland Forskningssjef SAMBA

More Related