欢迎来到天天文库
浏览记录
ID:33938145
大小:278.53 KB
页数:26页
时间:2019-02-28
《Basic graphic in R.pdf》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、BasicgraphicsinRUlrichHalekohBiometryResearchUnitDanishInstituteofAgriculturalSciencesJanuary9,2007Contents1Introduction22Theexampledata33Singleplot43.1Simplescatterplot.........................43.2Labelingaxesandsettingtheirrange..............43.3Choosingsymbols,colors
2、andsizesforthepoints.......53.4Title................................73.5Addinglinestoaplot.......................73.5.1Connectingpoints.....................83.5.2Addastraightline....................83.5.3Addasmoothline....................93.5.4ablineAddareferenceline...
3、............113.6Addtexttoaplot........................124Overlayingseveralscatterplots1314.1Severalscatterplotsinoneplot.................144.2Legend...............................155Plotssidebyside166Somespecialplots186.1Scatterplotmatrix.........................186.2B
4、oxplot..............................196.2.1Asingleboxplot......................196.2.2Severalboxplotsinoneplot...............196.3Dotplot..............................216.4Histogramanddensity......................216.5Q-Qplot..............................237Trellisgraph
5、ics247.1Scatterplotssidebyside.....................247.2Overlaidscatterplots.......................248Howtoplacemyplotsinadocument?259Moretolearnaboutgraphics261IntroductionRhastwoprimarymethodsforproducinggraphics.1.ThestandardmethodofRistobuildaplotsequentially.Youuse
6、ahigh-levelfunctionasplottosetupthebasicplot.Youcancontrolmanyelementsintheplotfunction,e.g.therangeoftheaxes,thetypeoftheplottingsymbols2orthetitle.Aftercreationofthebasicplot,youaddadditionalelements,suchaslinesortext.2.The’trellis’-graphics.Thesegraphicsweredeveloped
7、toenhancetheclarityofinformationofstatisticalplots.Theseareespeciallystronginpresentingtherelationshipoftwovariablesconditioningonthelevelsofathird.The’trellis’systemisavailableinRinthelatticepackage.Itsmainfunctionisxyplot.Thegraphicsarenotgeneratedsequentiallybutbyone
8、calltothefunction.Usingthe’trellis’-methodissomewhatmorecomplex-butoftenmoreelegant-thanthebasicsystem.Especia
此文档下载收益归作者所有