程序员的资源宝库

网站首页 > gitee 正文

R语言学习笔记二(r语言 入门)

sanyeah 2024-04-03 18:37:42 gitee 5 ℃ 0 评论

ggplot2
cookbook

可视化工具htmlwidgets

  • 地图leaflet
  • 时间序列dygraph
  • 网络networkD3

带R接口的javascript可视化工具包plotly
所有图形工具的完整列表

# 接下来所使用的安装包
install.packages(c(
  "colorBlindness", "directlabels", "dplyr", "gameofthrones", "ggforce", 
  "gghighlight", "ggnewscale", "ggplot2", "ggraph", "ggrepel", 
  "ggtext", "ggthemes", "hexbin", "Hmisc", "mapproj", "maps", 
  "munsell", "ozmaps", "paletteer", "patchwork", "rmapshaper", "scico", 
  "seriation", "sf", "stars", "tidygraph", "tidyr", "wesanderson" 
))

geom.point()

  • geom_smooth()拟合数据的平滑度并显示平滑度机器标准误差
  • geom_boxplot()生成一个盒须图(box-and-whisker)来总结一组点的分布
  • geom_histogram()和geom_freqpoly()显示连续变量的分布
  • geom_bar()显示分类变量的分布
  • geom_path()和geom_line()可以在数据点之间画线

R for Data Science包含有关使用更复杂模型的建议。
交互式3d图
github的sf包
R语言的sf包
ozmap
tidygraph

References

[1] Azzalini, A., and A. W. Bowman. “A Look at Some Data on the Old Faithful Geyser.” Applied Statistics 39 (1990): 357–65.

[2] Brewer, Cynthia A. “Color Use Guidelines for Mapping and Visualization.” In Visualization in Modern Cartography, edited by A. M. MacEachren and D. R. F. Taylor, 123–47. Elsevier Science, 1994.

[3] Campitelli, Elio. Ggnewscale: Multiple Fill and Colour Scales in ’Ggplot2’, 2020. https://CRAN.R-project.org/package=ggnewscale.

[4] Carr, Dan. “Graphical Displays.” In Encyclopedia of Environmetrics, edited by Abdel H. El-Shaarawi and Walter W. Piegorsch, 2:933–60. John Wiley & Sons, 2002. http://www.galaxy.gmu.edu/~dcarr/lib/EnvironmentalGraphics.pdf.

[5] ———. “Using Gray in Plots.” ASA Statistical Computing and Graphics Newsletter 2, no. 5 (1994): 11–14. http://www.galaxy.gmu.edu/~dcarr/lib/v5n2.pdf.

[6] Carr, Dan, Nicholas Lewin-Koh, and Martin M?chler. Hexbin: Hexagonal Binning Routines, 2014.

[7] Carr, Dan, and Ru Sun. “Using Layering and Perceptual Grouping in Statistical Graphics.” ASA Statistical Computing and Graphics Newsletter 10, no. 1 (1999): 25–31.

[8] Carr, D. B., R. J. Littlefield, W. L. Nicholson, and J. S. Littlefield. “Scatterplot Matrix Techniques for Large N.” Journal of the American Statistical Association 82, no. 398 (1987): 424–36.

[9] Chambers, John, William Cleveland, Beat Kleiner, and Paul Tukey. Graphical Methods for Data Analysis. Wadsworth, 1983.

[10] Cleveland, William. “A Model for Studying Display Methods of Statistical Graphics.” Journal of Computational and Graphical Statistics 2 (1993): 323–64. http://stat.bell-labs.com/doc/93.4.ps.

[11] ———. Visualizing Data. Hobart Press, 1993.

[12] Cook, Dianne, and Deborah F. Swayne. Interactive and Dynamic Graphics for Data Analysis: With Examples Using R and Ggobi. Springer, 2007.

[13] Eugster, Manuel J. A., and Thomas Schlesinger. “Osmar: OpenStreetMap and R.” R Journal, 2010. http://osmar.r-forge.r-project.org/RJpreprint.pdf.

[14] Garnier, Simon. Viridis: Default Color Maps from ’Matplotlib’, 2018. https://CRAN.R-project.org/package=viridis.

[15] Grolemund, Garrett, and Hadley Wickham. “Dates and Times Made Easy with lubridate.” Journal of Statistical Software 40, no. 3 (2011): 1–25. http://www.jstatsoft.org/v40/i03/.

[16] Hvitfeldt, Emil. Paletteer: Comprehensive Collection of Color Palettes, 2020. https://CRAN.R-project.org/package=paletteer.

[17] Lemon, Jim, Ben Bolker, Sander Oom, Eduardo Klein, Barry Rowlingson, Hadley Wickham, Anupam Tyagi, et al. Plotrix: Various Plotting Functions, 2008.

[18] Lovelace, Robin, Jakub Nowosad, and Jannes Muenchow. Geocomputation with R. CRC Press, 2019.

[19] Lumley, Thomas. Dichromat: Color Schemes for Dichromats, 2007.

[20] Meyer, David, Achim Zeileis, and Kurt Hornik. “The Strucplot Framework: Visualizing Multi-Way Contingency Tables with Vcd.” Journal of Statistical Software 17, no. 3 (2006): 1–48. http://www.jstatsoft.org/v17/i03/.

[21] Mullen, Lincoln A., and Jordan Bratt. “USAboundaries: Historical and Contemporary Boundaries of the United States of America.” Journal of Open Source Software 3, no. 23 (2018): 314. https://doi.org/10.21105/joss.00314.

[22] Murrell, Paul. “Investigations in Graphical Statistics.” PhD thesis, The University of Auckland, 1998.

[23] ———. R Graphics. Second. Chapman & Hall/CRC, 2011. https://www.stat.auckland.ac.nz/~paul/RG2e/.

[24] Müller, Kirill. Hms: Pretty Time of Day, 2020. https://CRAN.R-project.org/package=hms.

[25] Ou, Jianhong. ColorBlindness: Safe Color Set for Color Blindness, 2021. https://CRAN.R-project.org/package=colorBlindness.

[26] Pebesma, Edzer. “Simple Features for R: Standardized Support for Spatial Vector Data.” The R Journal 10, no. 1 (2018): 439–46. https://doi.org/10.32614/RJ-2018-009.

[27] ———. Stars: Spatiotemporal Arrays, Raster and Vector Data Cubes, 2020.

[28] Pedersen, Thomas Lin, and Fabio Crameri. Scico: Colour Palettes Based on the Scientific Colour-Maps, 2020. https://CRAN.R-project.org/package=scico.

[29] Robbins, Naomi. Creating More Effective Graphs. Chart House, 2013.

[30] Sarkar, Deepayan. Lattice: Multivariate Data Visualization with R. Springer, 2008.

[31] South, Andy. Rnaturalearth: World Map Data from Natural Earth, 2017. https://CRAN.R-project.org/package=rnaturalearth.

[32] Sparks, Adam H, Mark Padgham, Hugh Parsonage, and Keith Pembleton. “bomrang: Fetch Australian Government Bureau of Meteorology Weather Data.” The Journal of Open Source Software 2, no. 17 (September 2017). https://doi.org/10.21105/joss.00411.

[33] Sumner, Michael. Ozmaps: Australia Maps, 2019. https://CRAN.R-project.org/package=ozmaps.

[34] Teucher, Andy, and Kenton Russell. Rmapshaper: Client for ’Mapshaper’ for ’Geospatial’ Operations, 2018. https://CRAN.R-project.org/package=rmapshaper.

[34] Tufte, Edward R. Beautiful Evidence. Graphics Press, 2006.

[35] ———. Envisioning Information. Graphics Press, 1990.

[36] ———. The Visual Display of Quantitative Information. Second. Graphics Press, 2001.

[37] ———. Visual Explanations. Graphics Press, 1997.

[38] Tukey, John W. Exploratory Data Analysis. Addison–Wesley, 1977.

[39] Walker, Kyle. Tigris: Load Census Tiger/Line Shapefiles, 2019. https://CRAN.R-project.org/package=tigris.

[40] Warnes, Gregory. Gplots: Various R Programming Tools for Plotting Data, 2007.

[41] Wickham, Charlotte. Munsell: Utilities for Using Munsell Colours, 2018. https://CRAN.R-project.org/package=munsell.

[42] Wickham, Hadley. “A Layered Grammar of Graphics.” Journal of Computational and Graphical Statistics, 2009.

[43] ———. “Practical Tools for Exploring Data and Models.” PhD thesis, Iowa State University, 2008. http://had.co.nz/thesis.

[44] Wickham, Hadley, Michael Lawrence, Duncan Temple Lang, and Deborah F Swayne. “An Introduction to Rggobi.” R-News 8, no. 2 (2008): 3–7. http://CRAN.R-project.org/doc/Rnews/Rnews_2008-2.pdf.

[45] Wickham, Hadley, and Dana Seidel. Scales: Scale Functions for Visualization, 2020. https://CRAN.R-project.org/package=scales.

[46] Wilke, Claus O. Ggtext: Improved Text Rendering Support for ’Ggplot2’, 2020. https://CRAN.R-project.org/package=ggtext.

[47] Wilkinson, Leland. The Grammar of Graphics. 2nd ed. Statistics and Computing. Springer, 2005.

[48] Zeileis, Achim, Kurt Hornik, and Paul Murrell. “Escaping RGBland: Selecting Colors for Statistical Graphics.” Computational Statistics & Data Analysis, 2008. http://statmath.wu-wien.ac.at/~zeileis/papers/Zeileis+Hornik+Murrell-2008.pdf.

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表