技术控

    今日:118| 主题:49225
收藏本版 (1)
最新软件应用技术尽在掌握

[其他] ggplot2 2.2.0 coming soon!

[复制链接]
い明 媚 发表于 2016-10-1 12:41:00
165 3

立即注册CoLaBug.com会员,免费获得投稿人的专业资料,享用更多功能,玩转个人品牌!

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
I’m planning to release ggplot2 2.2.0 in early November. In preparation, I’d like to announce that a release candidate is now available: version 2.1.0.9001. Please try it out, and file an issue on GitHub if you discover any problems. I hope we can find and fix any major issues before the official release.
  Install the pre-release version with:
  [code]# install.packages("devtools")
devtools::install_github("hadley/ggplot2")[/code]   If you discover a major bug that breaks your plots, please file a minimal reprex , and then roll back to the released version with:
  [code]install.packages("ggplot2")[/code]  ggplot2 2.2.0 will be a relatively major release including:
  
       
  • Subtitles and captions.   
  • A large rewrite of the facetting system.   
  • Improved theme options.   
  • Better stacking   
  • Numerous bug fixes and minor improvements .  
   The majority of this work was carried out by Thomas Pederson , who I was lucky to have as my “ggplot2 intern” this summer. Make sure to check out other visualisation packages:  ggraph ,  ggforce , and  tweenr .
     Subtitles and captions

    Thanks to Bob Rudis , you can now add subtitles and captions:
   [code]ggplot(mpg, aes(displ, hwy)) +
  geom_point(aes(color = class)) +
  geom_smooth(se = FALSE, method = "loess") +
  labs(
    title = "Fuel efficiency generally decreases with engine size",
    subtitle = "Two seaters (sports cars) are an exception because of their light weight",
    caption = "Data from fueleconomy.gov"
  )

ggplot2 2.2.0 coming soon!-1 (available,including,planning,discover,official)
[/code]    These are controlled by the theme settings plot.subtitle and  plot.caption .
    The plot title is now aligned to the left by default. To return to the previous centering, use theme(plot.title = element_text(hjust = 0.5)) .
       Facets

    The facet and layout implementation has been moved to ggproto and received a large rewrite and refactoring. This will allow others to create their own facetting systems, as descrbied in the Extending ggplot2 vignette. Along with the rewrite a number of features and improvements has been added, most notably:
   
       
  • Functions in facetting formulas, thanks to  Dan Ruderman . [code]ggplot(diamonds, aes(carat, price)) +
      geom_hex(bins = 20) +
      facet_wrap(~cut_number(depth, 6))

    ggplot2 2.2.0 coming soon!-2 (available,including,planning,discover,official)
    [/code]   
  • Axes were dropped when the panels in  facet_wrap()  did not completely fill the rectangle. Now, an axis is drawn underneath the hanging panels: [code]ggplot(mpg, aes(displ, hwy)) +
      geom_point() +
      facet_wrap(~class)[/code]
更多图片 小图 大图
组图打开中,请稍候......
友荐云推荐




上一篇:Hackage reliability via mirroring
下一篇:Using MetalKit part 2*3^2
酷辣虫提示酷辣虫禁止发表任何与中华人民共和国法律有抵触的内容!所有内容由用户发布,并不代表酷辣虫的观点,酷辣虫无法对用户发布内容真实性提供任何的保证,请自行验证并承担风险与后果。如您有版权、违规等问题,请通过"联系我们"或"违规举报"告知我们处理。

tmddl 发表于 2016-10-20 13:07:13
传说中的沙发???哇卡卡
回复 支持 反对

使用道具 举报

羊威力 发表于 2016-11-17 15:56:44
羊威力天天灌水,好内疚!
回复 支持 反对

使用道具 举报

小猪在雨天 发表于 2016-11-21 11:57:34
い明 媚是我最崇拜的人!
回复 支持 反对

使用道具 举报

*滑动验证:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

我要投稿

推荐阅读

扫码访问 @iTTTTT瑞翔 的微博
回页顶回复上一篇下一篇回列表手机版
手机版/CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 )|网站地图 酷辣虫

© 2001-2016 Comsenz Inc. Design: Dean. DiscuzFans.

返回顶部 返回列表