首页    期刊浏览 2024年12月03日 星期二
登录注册

文章基本信息

  • 标题:Interactive and Animated Scalable Vector Graphics and R Data Displays
  • 本地全文:下载
  • 作者:Deborah Nolan ; Duncan Temple Lang
  • 期刊名称:Journal of Statistical Software
  • 印刷版ISSN:1548-7660
  • 电子版ISSN:1548-7660
  • 出版年度:2012
  • 卷号:46
  • 期号:1
  • 页码:1-88
  • 语种:English
  • 出版社:University of California, Los Angeles
  • 摘要:We describe an approach to creating interactive and animated graphical displays using R’s graphics engine and Scalable Vector Graphics, an XML vocabulary for describing two-dimensional graphical displays. We use the svg() graphics device inR and then post-process the resulting XML documents. The post-processing identifies the elements in the SVG that correspond to the different components of the graphical display, e.g., points, axes, labels, lines. One can then annotate these elements to add interactivity and animation effects. One can also use JavaScript to provide dynamic interactive effects to the plot, enabling rich user interactions and compelling visualizations. The resulting SVG documents can be embedded within HTML documents and can involve JavaScript code that integrates the SVG and HTML objects. The functionality is provided via the SVGAnnotation package and makes static plots generated viaR graphics functions available as stand-alone, interactive and animated plots for the Web and other venues.
国家哲学社会科学文献中心版权所有