@r-universe/webr 2023.6.11 → 2023.6.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/R.bin.data +35733 -74
- package/dist/R.bin.js +1756 -0
- package/dist/R.bin.wasm +0 -0
- package/dist/esbuild.d.ts +1 -0
- package/dist/libRblas.so +0 -0
- package/dist/libRlapack.so +0 -0
- package/dist/repl/fstree.d.ts +57 -0
- package/dist/repl/repl.d.ts +1 -0
- package/dist/tests/packages/webr.test.d.ts +1 -0
- package/dist/tests/webR/console.test.d.ts +1 -0
- package/dist/tests/webR/proxy.test.d.ts +1 -0
- package/dist/tests/webR/robj.test.d.ts +1 -0
- package/dist/tests/webR/utils.test.d.ts +1 -0
- package/dist/tests/webR/webr-main.test.d.ts +1 -0
- package/dist/tests/webR/webr-r.test.d.ts +1 -0
- package/dist/tests/webR/webr-worker.test.d.ts +1 -0
- package/dist/vfs/usr/lib/R/doc/AUTHORS +39 -0
- package/dist/vfs/usr/lib/R/doc/BioC_mirrors.csv +17 -0
- package/dist/vfs/usr/lib/R/doc/COPYING +340 -0
- package/dist/vfs/usr/lib/R/doc/COPYRIGHTS +774 -0
- package/dist/vfs/usr/lib/R/doc/CRAN_mirrors.csv +105 -0
- package/dist/vfs/usr/lib/R/doc/FAQ +2653 -0
- package/dist/vfs/usr/lib/R/doc/KEYWORDS +87 -0
- package/dist/vfs/usr/lib/R/doc/KEYWORDS.db +71 -0
- package/dist/vfs/usr/lib/R/doc/NEWS +3538 -0
- package/dist/vfs/usr/lib/R/doc/NEWS.0 +2825 -0
- package/dist/vfs/usr/lib/R/doc/NEWS.1 +8108 -0
- package/dist/vfs/usr/lib/R/doc/NEWS.2 +16534 -0
- package/dist/vfs/usr/lib/R/doc/NEWS.2.rds +0 -0
- package/dist/vfs/usr/lib/R/doc/NEWS.3 +7840 -0
- package/dist/vfs/usr/lib/R/doc/NEWS.3.rds +0 -0
- package/dist/vfs/usr/lib/R/doc/NEWS.pdf +0 -0
- package/dist/vfs/usr/lib/R/doc/NEWS.rds +0 -0
- package/dist/vfs/usr/lib/R/doc/RESOURCES +44 -0
- package/dist/vfs/usr/lib/R/doc/THANKS +78 -0
- package/dist/vfs/usr/lib/R/doc/html/NEWS.2.html +9004 -0
- package/dist/vfs/usr/lib/R/doc/html/NEWS.3.html +11328 -0
- package/dist/vfs/usr/lib/R/doc/html/NEWS.html +5151 -0
- package/dist/vfs/usr/lib/R/doc/html/R.css +130 -0
- package/dist/vfs/usr/lib/R/doc/html/Rlogo.pdf +0 -0
- package/dist/vfs/usr/lib/R/doc/html/Rlogo.svg +33 -0
- package/dist/vfs/usr/lib/R/doc/html/Search.html +27 -0
- package/dist/vfs/usr/lib/R/doc/html/SearchOn.html +200 -0
- package/dist/vfs/usr/lib/R/doc/html/about.html +38 -0
- package/dist/vfs/usr/lib/R/doc/html/favicon.ico +0 -0
- package/dist/vfs/usr/lib/R/doc/html/index.html +79 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/LICENSE +24 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/README.md +119 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_AMS-Regular.ttf +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_AMS-Regular.woff +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Fraktur-Bold.woff +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Fraktur-Regular.woff +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Main-Bold.ttf +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Main-Bold.woff +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Main-BoldItalic.woff +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Main-Italic.ttf +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Main-Italic.woff +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Main-Regular.ttf +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Main-Regular.woff +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Math-BoldItalic.woff +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Math-Italic.ttf +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Math-Italic.woff +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_SansSerif-Bold.woff +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_SansSerif-Italic.woff +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_SansSerif-Regular.woff +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Script-Regular.ttf +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Script-Regular.woff +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Size1-Regular.ttf +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Size1-Regular.woff +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Size2-Regular.ttf +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Size2-Regular.woff +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Size3-Regular.ttf +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Size3-Regular.woff +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Size4-Regular.ttf +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Size4-Regular.woff +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Typewriter-Regular.woff +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/katex.css +1079 -0
- package/dist/vfs/usr/lib/R/doc/html/katex/katex.js +18456 -0
- package/dist/vfs/usr/lib/R/doc/html/katex-check.js +13 -0
- package/dist/vfs/usr/lib/R/doc/html/katex-config.js +17 -0
- package/dist/vfs/usr/lib/R/doc/html/left.jpg +0 -0
- package/dist/vfs/usr/lib/R/doc/html/logo.jpg +0 -0
- package/dist/vfs/usr/lib/R/doc/html/mathjax-config.js +23 -0
- package/dist/vfs/usr/lib/R/doc/html/packages-head-utf8.html +17 -0
- package/dist/vfs/usr/lib/R/doc/html/packages.html +51 -0
- package/dist/vfs/usr/lib/R/doc/html/prism.css +235 -0
- package/dist/vfs/usr/lib/R/doc/html/prism.js +1495 -0
- package/dist/vfs/usr/lib/R/doc/html/resources.html +235 -0
- package/dist/vfs/usr/lib/R/doc/html/right.jpg +0 -0
- package/dist/vfs/usr/lib/R/doc/html/up.jpg +0 -0
- package/dist/vfs/usr/lib/R/doc/manual/images/QQ.png +0 -0
- package/dist/vfs/usr/lib/R/doc/manual/images/ecdf.png +0 -0
- package/dist/vfs/usr/lib/R/doc/manual/images/fig11.png +0 -0
- package/dist/vfs/usr/lib/R/doc/manual/images/fig12.png +0 -0
- package/dist/vfs/usr/lib/R/doc/manual/images/hist.png +0 -0
- package/dist/vfs/usr/lib/R/doc/manual/images/ice.png +0 -0
- package/dist/vfs/usr/lib/R/library/base/demo/error.catching.R +101 -0
- package/dist/vfs/usr/lib/R/library/base/demo/is.things.R +143 -0
- package/dist/vfs/usr/lib/R/library/base/demo/recursion.R +82 -0
- package/dist/vfs/usr/lib/R/library/base/demo/scoping.R +50 -0
- package/dist/vfs/usr/lib/R/library/base/help/AnIndex +1709 -0
- package/dist/vfs/usr/lib/R/library/base/help/aliases.rds +0 -0
- package/dist/vfs/usr/lib/R/library/base/help/base.rdb +0 -0
- package/dist/vfs/usr/lib/R/library/base/help/base.rdx +0 -0
- package/dist/vfs/usr/lib/R/library/base/help/paths.rds +0 -0
- package/dist/vfs/usr/lib/R/library/base/html/00Index.html +2754 -0
- package/dist/vfs/usr/lib/R/library/base/html/R.css +130 -0
- package/dist/vfs/usr/lib/R/library/compiler/help/AnIndex +9 -0
- package/dist/vfs/usr/lib/R/library/compiler/help/aliases.rds +0 -0
- package/dist/vfs/usr/lib/R/library/compiler/help/compiler.rdb +0 -0
- package/dist/vfs/usr/lib/R/library/compiler/help/compiler.rdx +0 -0
- package/dist/vfs/usr/lib/R/library/compiler/help/paths.rds +0 -0
- package/dist/vfs/usr/lib/R/library/compiler/html/00Index.html +43 -0
- package/dist/vfs/usr/lib/R/library/compiler/html/R.css +130 -0
- package/dist/vfs/usr/lib/R/library/compiler/tests/assign.R +152 -0
- package/dist/vfs/usr/lib/R/library/compiler/tests/basics.R +104 -0
- package/dist/vfs/usr/lib/R/library/compiler/tests/const.R +65 -0
- package/dist/vfs/usr/lib/R/library/compiler/tests/curexpr.R +96 -0
- package/dist/vfs/usr/lib/R/library/compiler/tests/envir.R +90 -0
- package/dist/vfs/usr/lib/R/library/compiler/tests/jit.R +16 -0
- package/dist/vfs/usr/lib/R/library/compiler/tests/loop.R +26 -0
- package/dist/vfs/usr/lib/R/library/compiler/tests/srcref.R +77 -0
- package/dist/vfs/usr/lib/R/library/compiler/tests/switch.R +98 -0
- package/dist/vfs/usr/lib/R/library/compiler/tests/vischk.R +121 -0
- package/dist/vfs/usr/lib/R/library/datasets/help/AnIndex +109 -0
- package/dist/vfs/usr/lib/R/library/datasets/help/aliases.rds +0 -0
- package/dist/vfs/usr/lib/R/library/datasets/help/datasets.rdb +0 -0
- package/dist/vfs/usr/lib/R/library/datasets/help/datasets.rdx +0 -0
- package/dist/vfs/usr/lib/R/library/datasets/help/paths.rds +0 -0
- package/dist/vfs/usr/lib/R/library/datasets/html/00Index.html +373 -0
- package/dist/vfs/usr/lib/R/library/datasets/html/R.css +130 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/ArialMT-Bold.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/ArialMT-BoldItalic.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/ArialMT-Italic.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/ArialMT.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/CM_boldx_10.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/CM_boldx_italic_10.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/CM_italic_10.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/CM_regular_10.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/CM_symbol_10.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/Courier-Bold.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/Courier-BoldOblique.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/Courier-Oblique.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/Courier.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/Helvetica-Bold.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/Helvetica-BoldOblique.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/Helvetica-Oblique.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/Helvetica.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/MustRead.html +20 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/README +21 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/Symbol.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/Times-Bold.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/Times-BoldItalic.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/Times-Italic.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/Times-Roman.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/ZapfDingbats.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/a010013l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/a010015l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/a010033l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/a010035l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/agd_____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/agdo____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/agw_____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/agwo____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/b018012l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/b018015l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/b018032l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/b018035l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/bkd_____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/bkdi____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/bkl_____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/bkli____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/c059013l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/c059016l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/c059033l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/c059036l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/cmbxti10.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/cmti10.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/cob_____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/cobo____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/com_____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/coo_____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/hv______.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/hvb_____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/hvbo____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/hvn_____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/hvnb____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/hvnbo___.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/hvno____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/hvo_____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/n019003l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/n019004l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/n019023l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/n019024l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/n019043l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/n019044l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/n019063l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/n019064l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/n021003l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/n021004l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/n021023l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/n021024l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/n022003l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/n022004l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/n022023l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/n022024l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/ncb_____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/ncbi____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/nci_____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/ncr_____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/p052003l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/p052004l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/p052023l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/p052024l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/pob_____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/pobi____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/poi_____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/por_____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/s050000l.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/sy______.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/tib_____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/tibi____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/tii_____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/afm/tir_____.afm.gz +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/demo/colors.R +108 -0
- package/dist/vfs/usr/lib/R/library/grDevices/demo/hclColors.R +63 -0
- package/dist/vfs/usr/lib/R/library/grDevices/enc/AdobeStd.enc +37 -0
- package/dist/vfs/usr/lib/R/library/grDevices/enc/AdobeSym.enc +42 -0
- package/dist/vfs/usr/lib/R/library/grDevices/enc/CP1250.enc +36 -0
- package/dist/vfs/usr/lib/R/library/grDevices/enc/CP1251.enc +37 -0
- package/dist/vfs/usr/lib/R/library/grDevices/enc/CP1253.enc +37 -0
- package/dist/vfs/usr/lib/R/library/grDevices/enc/CP1257.enc +36 -0
- package/dist/vfs/usr/lib/R/library/grDevices/enc/Cyrillic.enc +40 -0
- package/dist/vfs/usr/lib/R/library/grDevices/enc/Greek.enc +38 -0
- package/dist/vfs/usr/lib/R/library/grDevices/enc/ISOLatin1.enc +39 -0
- package/dist/vfs/usr/lib/R/library/grDevices/enc/ISOLatin2.enc +40 -0
- package/dist/vfs/usr/lib/R/library/grDevices/enc/ISOLatin7.enc +40 -0
- package/dist/vfs/usr/lib/R/library/grDevices/enc/ISOLatin9.enc +39 -0
- package/dist/vfs/usr/lib/R/library/grDevices/enc/KOI8-R.enc +39 -0
- package/dist/vfs/usr/lib/R/library/grDevices/enc/KOI8-U.enc +39 -0
- package/dist/vfs/usr/lib/R/library/grDevices/enc/MacRoman.enc +39 -0
- package/dist/vfs/usr/lib/R/library/grDevices/enc/PDFDoc.enc +39 -0
- package/dist/vfs/usr/lib/R/library/grDevices/enc/TeXtext.enc +39 -0
- package/dist/vfs/usr/lib/R/library/grDevices/enc/WinAnsi.enc +40 -0
- package/dist/vfs/usr/lib/R/library/grDevices/fonts/Montserrat/static/Montserrat-BoldItalic.ttf +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/fonts/Montserrat/static/Montserrat-Medium.ttf +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/fonts/Roboto/LICENSE.txt +202 -0
- package/dist/vfs/usr/lib/R/library/grDevices/fonts/Roboto/Roboto-Medium.ttf +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/help/AnIndex +192 -0
- package/dist/vfs/usr/lib/R/library/grDevices/help/aliases.rds +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/help/grDevices.rdb +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/help/grDevices.rdx +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/help/paths.rds +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/html/00Index.html +520 -0
- package/dist/vfs/usr/lib/R/library/grDevices/html/R.css +130 -0
- package/dist/vfs/usr/lib/R/library/grDevices/libs/grDevices.so +0 -0
- package/dist/vfs/usr/lib/R/library/grDevices/tests/convertColor-tests.R +47 -0
- package/dist/vfs/usr/lib/R/library/grDevices/tests/grDev-tsts.R +7 -0
- package/dist/vfs/usr/lib/R/library/grDevices/tests/palettes-tests.R +58 -0
- package/dist/vfs/usr/lib/R/library/grDevices/tests/ps-tests.R +39 -0
- package/dist/vfs/usr/lib/R/library/grDevices/tests/ps-tests.Rout.save +98 -0
- package/dist/vfs/usr/lib/R/library/grDevices/tests/saved-recordPlot.R +36 -0
- package/dist/vfs/usr/lib/R/library/grDevices/tests/xfig-tests.R +84 -0
- package/dist/vfs/usr/lib/R/library/grDevices/tests/xfig-tests.Rout.save +105 -0
- package/dist/vfs/usr/lib/R/library/graphics/demo/Hershey.R +394 -0
- package/dist/vfs/usr/lib/R/library/graphics/demo/Japanese.R +716 -0
- package/dist/vfs/usr/lib/R/library/graphics/demo/graphics.R +145 -0
- package/dist/vfs/usr/lib/R/library/graphics/demo/image.R +37 -0
- package/dist/vfs/usr/lib/R/library/graphics/demo/persp.R +86 -0
- package/dist/vfs/usr/lib/R/library/graphics/demo/plotmath.R +197 -0
- package/dist/vfs/usr/lib/R/library/graphics/help/AnIndex +130 -0
- package/dist/vfs/usr/lib/R/library/graphics/help/aliases.rds +0 -0
- package/dist/vfs/usr/lib/R/library/graphics/help/figures/mai.pdf +0 -0
- package/dist/vfs/usr/lib/R/library/graphics/help/figures/mai.png +0 -0
- package/dist/vfs/usr/lib/R/library/graphics/help/figures/oma.pdf +0 -0
- package/dist/vfs/usr/lib/R/library/graphics/help/figures/oma.png +0 -0
- package/dist/vfs/usr/lib/R/library/graphics/help/figures/pch.pdf +0 -0
- package/dist/vfs/usr/lib/R/library/graphics/help/figures/pch.png +0 -0
- package/dist/vfs/usr/lib/R/library/graphics/help/figures/pch.svg +185 -0
- package/dist/vfs/usr/lib/R/library/graphics/help/graphics.rdb +0 -0
- package/dist/vfs/usr/lib/R/library/graphics/help/graphics.rdx +0 -0
- package/dist/vfs/usr/lib/R/library/graphics/help/paths.rds +0 -0
- package/dist/vfs/usr/lib/R/library/graphics/html/00Index.html +222 -0
- package/dist/vfs/usr/lib/R/library/graphics/html/R.css +130 -0
- package/dist/vfs/usr/lib/R/library/grid/doc/DivByZero.txt +50 -0
- package/dist/vfs/usr/lib/R/library/grid/doc/changes.txt +1714 -0
- package/dist/vfs/usr/lib/R/library/grid/doc/displaylist.pdf +0 -0
- package/dist/vfs/usr/lib/R/library/grid/doc/frame.pdf +0 -0
- package/dist/vfs/usr/lib/R/library/grid/doc/grid.pdf +0 -0
- package/dist/vfs/usr/lib/R/library/grid/doc/grobs.pdf +0 -0
- package/dist/vfs/usr/lib/R/library/grid/doc/interactive.pdf +0 -0
- package/dist/vfs/usr/lib/R/library/grid/doc/locndimn.pdf +0 -0
- package/dist/vfs/usr/lib/R/library/grid/doc/moveline.pdf +0 -0
- package/dist/vfs/usr/lib/R/library/grid/doc/nonfinite.pdf +0 -0
- package/dist/vfs/usr/lib/R/library/grid/doc/plotexample.pdf +0 -0
- package/dist/vfs/usr/lib/R/library/grid/doc/rotated.pdf +0 -0
- package/dist/vfs/usr/lib/R/library/grid/doc/saveload.pdf +0 -0
- package/dist/vfs/usr/lib/R/library/grid/doc/sharing.pdf +0 -0
- package/dist/vfs/usr/lib/R/library/grid/doc/viewports.pdf +0 -0
- package/dist/vfs/usr/lib/R/library/grid/help/AnIndex +269 -0
- package/dist/vfs/usr/lib/R/library/grid/help/aliases.rds +0 -0
- package/dist/vfs/usr/lib/R/library/grid/help/grid.rdb +0 -0
- package/dist/vfs/usr/lib/R/library/grid/help/grid.rdx +0 -0
- package/dist/vfs/usr/lib/R/library/grid/help/paths.rds +0 -0
- package/dist/vfs/usr/lib/R/library/grid/html/00Index.html +648 -0
- package/dist/vfs/usr/lib/R/library/grid/html/R.css +130 -0
- package/dist/vfs/usr/lib/R/library/grid/tests/bugs.R +30 -0
- package/dist/vfs/usr/lib/R/library/grid/tests/clippaths.R +418 -0
- package/dist/vfs/usr/lib/R/library/grid/tests/compositing.R +107 -0
- package/dist/vfs/usr/lib/R/library/grid/tests/coords.R +598 -0
- package/dist/vfs/usr/lib/R/library/grid/tests/glyphs.R +325 -0
- package/dist/vfs/usr/lib/R/library/grid/tests/grep.R +49 -0
- package/dist/vfs/usr/lib/R/library/grid/tests/grep.Rout.save +100 -0
- package/dist/vfs/usr/lib/R/library/grid/tests/groups.R +549 -0
- package/dist/vfs/usr/lib/R/library/grid/tests/masks.R +417 -0
- package/dist/vfs/usr/lib/R/library/grid/tests/nesting.R +113 -0
- package/dist/vfs/usr/lib/R/library/grid/tests/paths.R +241 -0
- package/dist/vfs/usr/lib/R/library/grid/tests/patterns.R +1435 -0
- package/dist/vfs/usr/lib/R/library/grid/tests/reg.R +433 -0
- package/dist/vfs/usr/lib/R/library/grid/tests/testls.R +158 -0
- package/dist/vfs/usr/lib/R/library/grid/tests/testls.Rout.save +343 -0
- package/dist/vfs/usr/lib/R/library/grid/tests/units.R +180 -0
- package/dist/vfs/usr/lib/R/library/methods/help/AnIndex +483 -0
- package/dist/vfs/usr/lib/R/library/methods/help/aliases.rds +0 -0
- package/dist/vfs/usr/lib/R/library/methods/help/methods.rdb +0 -0
- package/dist/vfs/usr/lib/R/library/methods/help/methods.rdx +0 -0
- package/dist/vfs/usr/lib/R/library/methods/help/paths.rds +0 -0
- package/dist/vfs/usr/lib/R/library/methods/html/00Index.html +727 -0
- package/dist/vfs/usr/lib/R/library/methods/html/R.css +130 -0
- package/dist/vfs/usr/lib/R/library/methods/tests/S3.R +29 -0
- package/dist/vfs/usr/lib/R/library/methods/tests/basicRefClass.R +530 -0
- package/dist/vfs/usr/lib/R/library/methods/tests/duplicateClass.R +35 -0
- package/dist/vfs/usr/lib/R/library/methods/tests/envRefClass.R +18 -0
- package/dist/vfs/usr/lib/R/library/methods/tests/fieldAssignments.R +30 -0
- package/dist/vfs/usr/lib/R/library/methods/tests/mixinInitialize.R +86 -0
- package/dist/vfs/usr/lib/R/library/methods/tests/namesAndSlots.R +18 -0
- package/dist/vfs/usr/lib/R/library/methods/tests/nextWithDots.R +21 -0
- package/dist/vfs/usr/lib/R/library/methods/tests/refClassExample.R +51 -0
- package/dist/vfs/usr/lib/R/library/methods/tests/testConditionalIs.R +38 -0
- package/dist/vfs/usr/lib/R/library/methods/tests/testGroupGeneric.R +83 -0
- package/dist/vfs/usr/lib/R/library/methods/tests/testIs.R +61 -0
- package/dist/vfs/usr/lib/R/library/parallel/DESCRIPTION +16 -0
- package/dist/vfs/usr/lib/R/library/parallel/INDEX +16 -0
- package/dist/vfs/usr/lib/R/library/parallel/Meta/Rd.rds +0 -0
- package/dist/vfs/usr/lib/R/library/parallel/Meta/features.rds +0 -0
- package/dist/vfs/usr/lib/R/library/parallel/Meta/hsearch.rds +0 -0
- package/dist/vfs/usr/lib/R/library/parallel/Meta/links.rds +0 -0
- package/dist/vfs/usr/lib/R/library/parallel/Meta/nsInfo.rds +0 -0
- package/dist/vfs/usr/lib/R/library/parallel/Meta/package.rds +0 -0
- package/dist/vfs/usr/lib/R/library/parallel/NAMESPACE +42 -0
- package/dist/vfs/usr/lib/R/library/parallel/R/parallel +27 -0
- package/dist/vfs/usr/lib/R/library/parallel/R/parallel.rdb +0 -0
- package/dist/vfs/usr/lib/R/library/parallel/R/parallel.rdx +0 -0
- package/dist/vfs/usr/lib/R/library/parallel/doc/parallel.pdf +0 -0
- package/dist/vfs/usr/lib/R/library/parallel/help/AnIndex +45 -0
- package/dist/vfs/usr/lib/R/library/parallel/help/aliases.rds +0 -0
- package/dist/vfs/usr/lib/R/library/parallel/help/parallel.rdb +0 -0
- package/dist/vfs/usr/lib/R/library/parallel/help/parallel.rdx +0 -0
- package/dist/vfs/usr/lib/R/library/parallel/help/paths.rds +0 -0
- package/dist/vfs/usr/lib/R/library/parallel/html/00Index.html +116 -0
- package/dist/vfs/usr/lib/R/library/parallel/html/R.css +130 -0
- package/dist/vfs/usr/lib/R/library/parallel/libs/parallel.so +0 -0
- package/dist/vfs/usr/lib/R/library/parallel/tests/Master.R +36 -0
- package/dist/vfs/usr/lib/R/library/parallel/tests/RSeed.R +25 -0
- package/dist/vfs/usr/lib/R/library/parallel/tests/multicore1.RR +10 -0
- package/dist/vfs/usr/lib/R/library/parallel/tests/multicore2.RR +15 -0
- package/dist/vfs/usr/lib/R/library/parallel/tests/multicore2.Rout.save +47 -0
- package/dist/vfs/usr/lib/R/library/parallel/tests/multicore3.RR +9 -0
- package/dist/vfs/usr/lib/R/library/parallel/tests/snow1.RR +41 -0
- package/dist/vfs/usr/lib/R/library/parallel/tests/snow2.RR +20 -0
- package/dist/vfs/usr/lib/R/library/parallel/tests/snow2.Rout.save +53 -0
- package/dist/vfs/usr/lib/R/library/splines/help/AnIndex +22 -0
- package/dist/vfs/usr/lib/R/library/splines/help/aliases.rds +0 -0
- package/dist/vfs/usr/lib/R/library/splines/help/paths.rds +0 -0
- package/dist/vfs/usr/lib/R/library/splines/help/splines.rdb +0 -0
- package/dist/vfs/usr/lib/R/library/splines/help/splines.rdx +0 -0
- package/dist/vfs/usr/lib/R/library/splines/html/00Index.html +69 -0
- package/dist/vfs/usr/lib/R/library/splines/html/R.css +130 -0
- package/dist/vfs/usr/lib/R/library/splines/tests/sparse-tst.R +35 -0
- package/dist/vfs/usr/lib/R/library/splines/tests/spline-tst.R +296 -0
- package/dist/vfs/usr/lib/R/library/stats/demo/glm.vr.R +24 -0
- package/dist/vfs/usr/lib/R/library/stats/demo/lm.glm.R +144 -0
- package/dist/vfs/usr/lib/R/library/stats/demo/nlm.R +110 -0
- package/dist/vfs/usr/lib/R/library/stats/demo/smooth.R +39 -0
- package/dist/vfs/usr/lib/R/library/stats/help/AnIndex +780 -0
- package/dist/vfs/usr/lib/R/library/stats/help/aliases.rds +0 -0
- package/dist/vfs/usr/lib/R/library/stats/help/paths.rds +0 -0
- package/dist/vfs/usr/lib/R/library/stats/help/stats.rdb +0 -0
- package/dist/vfs/usr/lib/R/library/stats/help/stats.rdx +0 -0
- package/dist/vfs/usr/lib/R/library/stats/html/00Index.html +1354 -0
- package/dist/vfs/usr/lib/R/library/stats/html/R.css +130 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/NLSstClosest.R +12 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/anorexia.rda +0 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/arimaML.R +265 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/bandwidth.R +19 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/bandwidth.Rout.save +49 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/birthwt.rda +0 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/cmdscale.R +10 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/drop1-polr.R +30 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/glm-etc.R +162 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/glm.R +82 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/glm.Rout.save +194 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/hills.rds +0 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/ig_glm.R +68 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/ks-test.R +116 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/ks-test.Rout.save +365 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/nafns.R +136 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/nlm.R +107 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/nls.R +389 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/nls.Rout.save +828 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/offsets.R +39 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/ppr.R +6 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/ppr_test.csv +443 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/simulate.R +87 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/simulate.Rout.save +417 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/smooth.spline.R +188 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/table-margins.R +20 -0
- package/dist/vfs/usr/lib/R/library/stats/tests/ts-tests.R +180 -0
- package/dist/vfs/usr/lib/R/library/stats4/help/AnIndex +36 -0
- package/dist/vfs/usr/lib/R/library/stats4/help/aliases.rds +0 -0
- package/dist/vfs/usr/lib/R/library/stats4/help/paths.rds +0 -0
- package/dist/vfs/usr/lib/R/library/stats4/help/stats4.rdb +0 -0
- package/dist/vfs/usr/lib/R/library/stats4/help/stats4.rdx +0 -0
- package/dist/vfs/usr/lib/R/library/stats4/html/00Index.html +75 -0
- package/dist/vfs/usr/lib/R/library/stats4/html/R.css +130 -0
- package/dist/vfs/usr/lib/R/library/stats4/tests/confint.R +23 -0
- package/dist/vfs/usr/lib/R/library/tcltk/DESCRIPTION +12 -0
- package/dist/vfs/usr/lib/R/library/tcltk/INDEX +13 -0
- package/dist/vfs/usr/lib/R/library/tcltk/Meta/Rd.rds +0 -0
- package/dist/vfs/usr/lib/R/library/tcltk/Meta/demo.rds +0 -0
- package/dist/vfs/usr/lib/R/library/tcltk/Meta/features.rds +0 -0
- package/dist/vfs/usr/lib/R/library/tcltk/Meta/hsearch.rds +0 -0
- package/dist/vfs/usr/lib/R/library/tcltk/Meta/links.rds +0 -0
- package/dist/vfs/usr/lib/R/library/tcltk/Meta/nsInfo.rds +0 -0
- package/dist/vfs/usr/lib/R/library/tcltk/Meta/package.rds +0 -0
- package/dist/vfs/usr/lib/R/library/tcltk/NAMESPACE +36 -0
- package/dist/vfs/usr/lib/R/library/tcltk/R/tcltk +20 -0
- package/dist/vfs/usr/lib/R/library/tcltk/demo/tkcanvas.R +151 -0
- package/dist/vfs/usr/lib/R/library/tcltk/demo/tkdensity.R +104 -0
- package/dist/vfs/usr/lib/R/library/tcltk/demo/tkfaq.R +32 -0
- package/dist/vfs/usr/lib/R/library/tcltk/demo/tkttest.R +89 -0
- package/dist/vfs/usr/lib/R/library/tcltk/exec/Tk-frontend.R +25 -0
- package/dist/vfs/usr/lib/R/library/tcltk/exec/console.tcl +79 -0
- package/dist/vfs/usr/lib/R/library/tcltk/exec/hierarchy.tcl +1271 -0
- package/dist/vfs/usr/lib/R/library/tcltk/exec/pkgIndex.tcl +50 -0
- package/dist/vfs/usr/lib/R/library/tcltk/exec/progressbar.tcl +2435 -0
- package/dist/vfs/usr/lib/R/library/tcltk/exec/util-dump.tcl +660 -0
- package/dist/vfs/usr/lib/R/library/tcltk/exec/util-expand.tcl +207 -0
- package/dist/vfs/usr/lib/R/library/tcltk/exec/util-number.tcl +101 -0
- package/dist/vfs/usr/lib/R/library/tcltk/exec/util-string.tcl +149 -0
- package/dist/vfs/usr/lib/R/library/tcltk/exec/util-tk.tcl +244 -0
- package/dist/vfs/usr/lib/R/library/tcltk/exec/util.tcl +895 -0
- package/dist/vfs/usr/lib/R/library/tcltk/exec/widget.tcl +975 -0
- package/dist/vfs/usr/lib/R/library/tcltk/help/AnIndex +305 -0
- package/dist/vfs/usr/lib/R/library/tcltk/help/aliases.rds +0 -0
- package/dist/vfs/usr/lib/R/library/tcltk/help/paths.rds +0 -0
- package/dist/vfs/usr/lib/R/library/tcltk/help/tcltk.rdb +0 -0
- package/dist/vfs/usr/lib/R/library/tcltk/help/tcltk.rdx +0 -0
- package/dist/vfs/usr/lib/R/library/tcltk/html/00Index.html +680 -0
- package/dist/vfs/usr/lib/R/library/tcltk/html/R.css +130 -0
- package/dist/vfs/usr/lib/R/library/tools/help/AnIndex +160 -0
- package/dist/vfs/usr/lib/R/library/tools/help/aliases.rds +0 -0
- package/dist/vfs/usr/lib/R/library/tools/help/paths.rds +0 -0
- package/dist/vfs/usr/lib/R/library/tools/help/tools.rdb +0 -0
- package/dist/vfs/usr/lib/R/library/tools/help/tools.rdx +0 -0
- package/dist/vfs/usr/lib/R/library/tools/html/00Index.html +455 -0
- package/dist/vfs/usr/lib/R/library/tools/html/R.css +130 -0
- package/dist/vfs/usr/lib/R/library/tools/tests/QC.R +34 -0
- package/dist/vfs/usr/lib/R/library/tools/tests/Rd-Sexpr-error.Rd +8 -0
- package/dist/vfs/usr/lib/R/library/tools/tests/Rd-Sexpr-hide-empty.Rd +18 -0
- package/dist/vfs/usr/lib/R/library/tools/tests/Rd-Sexpr-warning.Rd +6 -0
- package/dist/vfs/usr/lib/R/library/tools/tests/Rd.R +53 -0
- package/dist/vfs/usr/lib/R/library/tools/tests/Rd2HTML.R +52 -0
- package/dist/vfs/usr/lib/R/library/tools/tests/S3.R +8 -0
- package/dist/vfs/usr/lib/R/library/tools/tests/doi.Rd +8 -0
- package/dist/vfs/usr/lib/R/library/tools/tests/undoc.R +4 -0
- package/dist/vfs/usr/lib/R/library/translations/DESCRIPTION +7 -0
- package/dist/vfs/usr/lib/R/library/translations/Meta/features.rds +0 -0
- package/dist/vfs/usr/lib/R/library/translations/Meta/package.rds +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/R-base.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/R-compiler.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/R-grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/R-graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/R-grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/R-methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/R-parallel.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/R-splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/R-stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/R-stats4.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/R-tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/R-tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/R-utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/R.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/RGui.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/parallel.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/da/LC_MESSAGES/tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/R-base.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/R-compiler.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/R-grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/R-graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/R-grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/R-methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/R-parallel.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/R-splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/R-stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/R-stats4.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/R-tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/R-tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/R-utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/R.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/RGui.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/parallel.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/de/LC_MESSAGES/utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en/LC_MESSAGES/R.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/R-base.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/R-compiler.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/R-grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/R-graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/R-grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/R-methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/R-parallel.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/R-splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/R-stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/R-stats4.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/R-tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/R-tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/R-utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/R.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/parallel.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en@quot/LC_MESSAGES/utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en_GB/LC_MESSAGES/R-grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en_GB/LC_MESSAGES/R.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/en_GB/LC_MESSAGES/grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/es/LC_MESSAGES/R.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/es/LC_MESSAGES/RGui.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/es/LC_MESSAGES/graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fa/LC_MESSAGES/R-base.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fa/LC_MESSAGES/R-utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fa/LC_MESSAGES/R.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fa/LC_MESSAGES/RGui.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/R-base.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/R-compiler.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/R-grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/R-graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/R-grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/R-methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/R-parallel.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/R-splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/R-stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/R-stats4.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/R-tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/R-tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/R-utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/R.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/RGui.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/parallel.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/fr/LC_MESSAGES/utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/R-base.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/R-compiler.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/R-grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/R-graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/R-grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/R-methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/R-parallel.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/R-splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/R-stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/R-stats4.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/R-tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/R-tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/R-utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/R.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/RGui.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/parallel.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/it/LC_MESSAGES/utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ja/LC_MESSAGES/R-base.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ja/LC_MESSAGES/R-compiler.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ja/LC_MESSAGES/R-grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ja/LC_MESSAGES/R-graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ja/LC_MESSAGES/R-grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ja/LC_MESSAGES/R-methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ja/LC_MESSAGES/R-splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ja/LC_MESSAGES/R-stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ja/LC_MESSAGES/R-stats4.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ja/LC_MESSAGES/R-tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ja/LC_MESSAGES/R-tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ja/LC_MESSAGES/R-utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ja/LC_MESSAGES/R.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ja/LC_MESSAGES/RGui.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ja/LC_MESSAGES/grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ja/LC_MESSAGES/graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ja/LC_MESSAGES/grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ja/LC_MESSAGES/methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ja/LC_MESSAGES/splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ja/LC_MESSAGES/stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ja/LC_MESSAGES/tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ja/LC_MESSAGES/tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/R-base.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/R-compiler.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/R-grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/R-graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/R-grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/R-methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/R-parallel.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/R-splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/R-stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/R-stats4.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/R-tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/R-tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/R-utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/R.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/RGui.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/parallel.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ko/LC_MESSAGES/utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/R-base.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/R-compiler.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/R-grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/R-graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/R-grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/R-methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/R-parallel.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/R-splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/R-stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/R-stats4.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/R-tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/R-tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/R-utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/R.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/RGui.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/parallel.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/lt/LC_MESSAGES/utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/nn/LC_MESSAGES/R-base.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/nn/LC_MESSAGES/R.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/nn/LC_MESSAGES/RGui.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/nn/LC_MESSAGES/graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/R-base.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/R-compiler.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/R-grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/R-graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/R-grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/R-methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/R-parallel.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/R-splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/R-stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/R-stats4.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/R-tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/R-tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/R-utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/R.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/RGui.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/parallel.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pl/LC_MESSAGES/utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pt_BR/LC_MESSAGES/R-base.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pt_BR/LC_MESSAGES/R-compiler.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pt_BR/LC_MESSAGES/R-grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pt_BR/LC_MESSAGES/R-graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pt_BR/LC_MESSAGES/R-grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pt_BR/LC_MESSAGES/R-methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pt_BR/LC_MESSAGES/R-splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pt_BR/LC_MESSAGES/R-stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pt_BR/LC_MESSAGES/R-stats4.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pt_BR/LC_MESSAGES/R-tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pt_BR/LC_MESSAGES/R-tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pt_BR/LC_MESSAGES/R-utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pt_BR/LC_MESSAGES/R.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pt_BR/LC_MESSAGES/RGui.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pt_BR/LC_MESSAGES/grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pt_BR/LC_MESSAGES/graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pt_BR/LC_MESSAGES/grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pt_BR/LC_MESSAGES/methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pt_BR/LC_MESSAGES/splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pt_BR/LC_MESSAGES/stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pt_BR/LC_MESSAGES/tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/pt_BR/LC_MESSAGES/tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/R-base.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/R-compiler.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/R-grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/R-graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/R-grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/R-methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/R-parallel.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/R-splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/R-stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/R-stats4.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/R-tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/R-tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/R-utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/R.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/RGui.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/parallel.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/ru/LC_MESSAGES/utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/tr/LC_MESSAGES/R-base.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/tr/LC_MESSAGES/R-stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/tr/LC_MESSAGES/R-stats4.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/tr/LC_MESSAGES/R-tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/tr/LC_MESSAGES/R-utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/tr/LC_MESSAGES/R.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/tr/LC_MESSAGES/RGui.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/tr/LC_MESSAGES/graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/R-base.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/R-compiler.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/R-grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/R-graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/R-grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/R-methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/R-parallel.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/R-splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/R-stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/R-stats4.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/R-tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/R-tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/R-utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/R.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/RGui.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/parallel.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_CN/LC_MESSAGES/tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/R-base.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/R-compiler.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/R-grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/R-graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/R-grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/R-methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/R-parallel.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/R-splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/R-stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/R-stats4.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/R-tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/R-tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/R-utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/R.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/RGui.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/grDevices.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/graphics.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/grid.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/methods.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/parallel.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/splines.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/stats.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/tcltk.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/tools.mo +0 -0
- package/dist/vfs/usr/lib/R/library/translations/zh_TW/LC_MESSAGES/utils.mo +0 -0
- package/dist/vfs/usr/lib/R/library/utils/doc/Sweave.pdf +0 -0
- package/dist/vfs/usr/lib/R/library/utils/help/AnIndex +382 -0
- package/dist/vfs/usr/lib/R/library/utils/help/aliases.rds +0 -0
- package/dist/vfs/usr/lib/R/library/utils/help/paths.rds +0 -0
- package/dist/vfs/usr/lib/R/library/utils/help/utils.rdb +0 -0
- package/dist/vfs/usr/lib/R/library/utils/help/utils.rdx +0 -0
- package/dist/vfs/usr/lib/R/library/utils/html/00Index.html +802 -0
- package/dist/vfs/usr/lib/R/library/utils/html/R.css +130 -0
- package/dist/vfs/usr/lib/R/library/utils/misc/exDIF.csv +5 -0
- package/dist/vfs/usr/lib/R/library/utils/misc/exDIF.dif +44 -0
- package/dist/vfs/usr/lib/R/library/utils/tests/Sexpr-verb-ex.Rnw +44 -0
- package/dist/vfs/usr/lib/R/library/utils/tests/Sweave-tst.R +85 -0
- package/dist/vfs/usr/lib/R/library/utils/tests/charclass.R +97 -0
- package/dist/vfs/usr/lib/R/library/utils/tests/completion.R +37 -0
- package/dist/vfs/usr/lib/R/library/utils/tests/customgraphics.Rnw +20 -0
- package/dist/vfs/usr/lib/R/library/utils/tests/download.file.R +170 -0
- package/dist/vfs/usr/lib/R/library/utils/tests/keepsource.Rnw +12 -0
- package/dist/vfs/usr/lib/R/library/utils/tests/relist.R +24 -0
- package/dist/vfs/usr/lib/R/library/utils/tests/swv-keepSrc-1.Rnw +48 -0
- package/dist/vfs/usr/lib/R/modules/internet.so +0 -0
- package/dist/vfs/usr/lib/R/modules/lapack.so +0 -0
- package/dist/vfs/usr/lib/R/share/R/REMOVE.R +82 -0
- package/dist/vfs/usr/lib/R/share/R/examples-footer.R +12 -0
- package/dist/vfs/usr/lib/R/share/R/examples-header.R +85 -0
- package/dist/vfs/usr/lib/R/share/R/nspackloader.R +27 -0
- package/dist/vfs/usr/lib/R/share/R/tests-startup.R +4 -0
- package/dist/vfs/usr/lib/R/share/Rd/macros/system.Rd +56 -0
- package/dist/vfs/usr/lib/R/share/dictionaries/en_stats.rds +0 -0
- package/dist/vfs/usr/lib/R/share/encodings/Adobe-glyphlist +4200 -0
- package/dist/vfs/usr/lib/R/share/encodings/character-sets +1900 -0
- package/dist/vfs/usr/lib/R/share/java/README +3 -0
- package/dist/vfs/usr/lib/R/share/java/getsp.class +0 -0
- package/dist/vfs/usr/lib/R/share/licenses/AGPL-3 +661 -0
- package/dist/vfs/usr/lib/R/share/licenses/Artistic-2.0 +197 -0
- package/dist/vfs/usr/lib/R/share/licenses/BSD_2_clause +40 -0
- package/dist/vfs/usr/lib/R/share/licenses/BSD_3_clause +46 -0
- package/dist/vfs/usr/lib/R/share/licenses/GPL-2 +339 -0
- package/dist/vfs/usr/lib/R/share/licenses/GPL-3 +674 -0
- package/dist/vfs/usr/lib/R/share/licenses/LGPL-2 +481 -0
- package/dist/vfs/usr/lib/R/share/licenses/LGPL-2.1 +502 -0
- package/dist/vfs/usr/lib/R/share/licenses/LGPL-3 +165 -0
- package/dist/vfs/usr/lib/R/share/licenses/MIT +35 -0
- package/dist/vfs/usr/lib/R/share/licenses/license.db +268 -0
- package/dist/vfs/usr/lib/R/share/make/basepkg.mk +207 -0
- package/dist/vfs/usr/lib/R/share/make/check_vars_ini.mk +18 -0
- package/dist/vfs/usr/lib/R/share/make/check_vars_out.mk +22 -0
- package/dist/vfs/usr/lib/R/share/make/clean.mk +2 -0
- package/dist/vfs/usr/lib/R/share/make/config.mk +6 -0
- package/dist/vfs/usr/lib/R/share/make/lazycomp.mk +23 -0
- package/dist/vfs/usr/lib/R/share/make/shlib.mk +30 -0
- package/dist/vfs/usr/lib/R/share/make/vars.mk +14 -0
- package/dist/vfs/usr/lib/R/share/make/winshlib.mk +41 -0
- package/dist/vfs/usr/lib/R/share/sh/echo.sh +4 -0
- package/dist/vfs/usr/lib/R/share/texmf/bibtex/bib/RJournal.bib +10345 -0
- package/dist/vfs/usr/lib/R/share/texmf/bibtex/bib/Rnews.bib +2733 -0
- package/dist/vfs/usr/lib/R/share/texmf/bibtex/bst/jss.bst +1653 -0
- package/dist/vfs/usr/lib/R/share/texmf/tex/latex/Rd.sty +450 -0
- package/dist/vfs/usr/lib/R/share/texmf/tex/latex/Sweave.sty +59 -0
- package/dist/vfs/usr/lib/R/share/texmf/tex/latex/jss.cls +490 -0
- package/dist/vfs/usr/lib/R/share/texmf/tex/latex/omscmtt.fd +21 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Abidjan +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Accra +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Addis_Ababa +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Algiers +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Asmara +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Asmera +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Bamako +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Bangui +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Banjul +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Bissau +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Blantyre +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Brazzaville +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Bujumbura +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Cairo +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Casablanca +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Ceuta +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Conakry +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Dakar +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Dar_es_Salaam +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Djibouti +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Douala +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/El_Aaiun +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Freetown +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Gaborone +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Harare +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Johannesburg +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Juba +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Kampala +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Khartoum +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Kigali +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Kinshasa +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Lagos +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Libreville +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Lome +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Luanda +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Lubumbashi +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Lusaka +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Malabo +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Maputo +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Maseru +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Mbabane +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Mogadishu +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Monrovia +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Nairobi +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Ndjamena +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Niamey +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Nouakchott +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Ouagadougou +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Porto-Novo +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Sao_Tome +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Timbuktu +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Tripoli +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Tunis +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Africa/Windhoek +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Adak +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Anchorage +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Anguilla +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Antigua +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Araguaina +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Argentina/Buenos_Aires +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Argentina/Catamarca +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Argentina/ComodRivadavia +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Argentina/Cordoba +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Argentina/Jujuy +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Argentina/La_Rioja +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Argentina/Mendoza +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Argentina/Rio_Gallegos +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Argentina/Salta +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Argentina/San_Juan +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Argentina/San_Luis +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Argentina/Tucuman +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Argentina/Ushuaia +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Aruba +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Asuncion +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Atikokan +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Atka +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Bahia +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Bahia_Banderas +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Barbados +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Belem +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Belize +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Blanc-Sablon +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Boa_Vista +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Bogota +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Boise +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Buenos_Aires +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Cambridge_Bay +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Campo_Grande +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Cancun +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Caracas +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Catamarca +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Cayenne +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Cayman +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Chicago +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Chihuahua +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Ciudad_Juarez +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Coral_Harbour +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Cordoba +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Costa_Rica +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Creston +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Cuiaba +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Curacao +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Danmarkshavn +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Dawson +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Dawson_Creek +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Denver +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Detroit +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Dominica +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Edmonton +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Eirunepe +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/El_Salvador +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Ensenada +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Fort_Nelson +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Fort_Wayne +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Fortaleza +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Glace_Bay +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Godthab +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Goose_Bay +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Grand_Turk +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Grenada +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Guadeloupe +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Guatemala +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Guayaquil +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Guyana +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Halifax +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Havana +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Hermosillo +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Indiana/Indianapolis +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Indiana/Knox +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Indiana/Marengo +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Indiana/Petersburg +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Indiana/Tell_City +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Indiana/Vevay +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Indiana/Vincennes +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Indiana/Winamac +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Indianapolis +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Inuvik +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Iqaluit +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Jamaica +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Jujuy +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Juneau +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Kentucky/Louisville +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Kentucky/Monticello +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Knox_IN +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Kralendijk +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/La_Paz +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Lima +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Los_Angeles +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Louisville +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Lower_Princes +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Maceio +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Managua +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Manaus +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Marigot +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Martinique +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Matamoros +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Mazatlan +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Mendoza +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Menominee +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Merida +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Metlakatla +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Mexico_City +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Miquelon +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Moncton +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Monterrey +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Montevideo +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Montreal +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Montserrat +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Nassau +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/New_York +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Nipigon +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Nome +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Noronha +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/North_Dakota/Beulah +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/North_Dakota/Center +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/North_Dakota/New_Salem +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Nuuk +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Ojinaga +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Panama +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Pangnirtung +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Paramaribo +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Phoenix +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Port-au-Prince +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Port_of_Spain +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Porto_Acre +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Porto_Velho +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Puerto_Rico +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Punta_Arenas +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Rainy_River +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Rankin_Inlet +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Recife +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Regina +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Resolute +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Rio_Branco +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Rosario +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Santa_Isabel +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Santarem +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Santiago +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Santo_Domingo +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Sao_Paulo +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Scoresbysund +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Shiprock +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Sitka +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/St_Barthelemy +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/St_Johns +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/St_Kitts +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/St_Lucia +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/St_Thomas +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/St_Vincent +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Swift_Current +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Tegucigalpa +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Thule +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Thunder_Bay +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Tijuana +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Toronto +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Tortola +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Vancouver +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Virgin +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Whitehorse +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Winnipeg +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Yakutat +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/America/Yellowknife +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Antarctica/Casey +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Antarctica/Davis +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Antarctica/DumontDUrville +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Antarctica/Macquarie +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Antarctica/Mawson +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Antarctica/McMurdo +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Antarctica/Palmer +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Antarctica/Rothera +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Antarctica/South_Pole +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Antarctica/Syowa +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Antarctica/Troll +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Antarctica/Vostok +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Arctic/Longyearbyen +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Aden +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Almaty +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Amman +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Anadyr +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Aqtau +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Aqtobe +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Ashgabat +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Ashkhabad +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Atyrau +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Baghdad +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Bahrain +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Baku +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Bangkok +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Barnaul +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Beirut +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Bishkek +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Brunei +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Calcutta +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Chita +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Choibalsan +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Chongqing +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Chungking +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Colombo +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Dacca +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Damascus +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Dhaka +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Dili +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Dubai +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Dushanbe +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Famagusta +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Gaza +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Harbin +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Hebron +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Ho_Chi_Minh +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Hong_Kong +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Hovd +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Irkutsk +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Istanbul +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Jakarta +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Jayapura +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Jerusalem +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Kabul +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Kamchatka +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Karachi +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Kashgar +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Kathmandu +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Katmandu +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Khandyga +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Kolkata +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Krasnoyarsk +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Kuala_Lumpur +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Kuching +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Kuwait +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Macao +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Macau +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Magadan +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Makassar +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Manila +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Muscat +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Nicosia +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Novokuznetsk +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Novosibirsk +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Omsk +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Oral +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Phnom_Penh +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Pontianak +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Pyongyang +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Qatar +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Qostanay +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Qyzylorda +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Rangoon +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Riyadh +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Saigon +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Sakhalin +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Samarkand +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Seoul +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Shanghai +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Singapore +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Srednekolymsk +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Taipei +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Tashkent +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Tbilisi +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Tehran +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Tel_Aviv +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Thimbu +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Thimphu +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Tokyo +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Tomsk +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Ujung_Pandang +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Ulaanbaatar +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Ulan_Bator +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Urumqi +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Ust-Nera +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Vientiane +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Vladivostok +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Yakutsk +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Yangon +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Yekaterinburg +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Asia/Yerevan +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Atlantic/Azores +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Atlantic/Bermuda +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Atlantic/Canary +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Atlantic/Cape_Verde +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Atlantic/Faeroe +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Atlantic/Faroe +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Atlantic/Jan_Mayen +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Atlantic/Madeira +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Atlantic/Reykjavik +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Atlantic/South_Georgia +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Atlantic/St_Helena +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Atlantic/Stanley +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/ACT +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/Adelaide +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/Brisbane +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/Broken_Hill +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/Canberra +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/Currie +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/Darwin +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/Eucla +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/Hobart +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/LHI +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/Lindeman +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/Lord_Howe +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/Melbourne +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/NSW +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/North +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/Perth +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/Queensland +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/South +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/Sydney +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/Tasmania +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/Victoria +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/West +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Australia/Yancowinna +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Brazil/Acre +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Brazil/DeNoronha +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Brazil/East +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Brazil/West +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/CET +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/CST6CDT +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Canada/Atlantic +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Canada/Central +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Canada/Eastern +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Canada/Mountain +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Canada/Newfoundland +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Canada/Pacific +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Canada/Saskatchewan +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Canada/Yukon +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Chile/Continental +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Chile/EasterIsland +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Cuba +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/EET +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/EST +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/EST5EDT +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Egypt +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Eire +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT+0 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT+1 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT+10 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT+11 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT+12 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT+2 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT+3 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT+4 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT+5 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT+6 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT+7 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT+8 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT+9 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT-0 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT-1 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT-10 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT-11 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT-12 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT-13 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT-14 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT-2 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT-3 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT-4 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT-5 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT-6 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT-7 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT-8 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT-9 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/GMT0 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/Greenwich +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/UCT +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/UTC +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/Universal +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Etc/Zulu +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Amsterdam +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Andorra +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Astrakhan +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Athens +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Belfast +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Belgrade +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Berlin +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Bratislava +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Brussels +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Bucharest +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Budapest +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Busingen +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Chisinau +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Copenhagen +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Dublin +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Gibraltar +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Guernsey +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Helsinki +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Isle_of_Man +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Istanbul +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Jersey +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Kaliningrad +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Kiev +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Kirov +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Kyiv +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Lisbon +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Ljubljana +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/London +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Luxembourg +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Madrid +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Malta +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Mariehamn +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Minsk +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Monaco +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Moscow +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Nicosia +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Oslo +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Paris +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Podgorica +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Prague +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Riga +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Rome +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Samara +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/San_Marino +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Sarajevo +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Saratov +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Simferopol +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Skopje +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Sofia +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Stockholm +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Tallinn +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Tirane +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Tiraspol +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Ulyanovsk +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Uzhgorod +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Vaduz +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Vatican +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Vienna +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Vilnius +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Volgograd +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Warsaw +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Zagreb +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Zaporozhye +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Europe/Zurich +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/GB +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/GB-Eire +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/GMT +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/GMT+0 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/GMT-0 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/GMT0 +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Greenwich +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/HST +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Hongkong +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Iceland +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Indian/Antananarivo +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Indian/Chagos +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Indian/Christmas +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Indian/Cocos +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Indian/Comoro +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Indian/Kerguelen +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Indian/Mahe +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Indian/Maldives +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Indian/Mauritius +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Indian/Mayotte +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Indian/Reunion +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Iran +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Israel +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Jamaica +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Japan +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Kwajalein +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Libya +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/MET +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/MST +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/MST7MDT +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Mexico/BajaNorte +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Mexico/BajaSur +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Mexico/General +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/NZ +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/NZ-CHAT +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Navajo +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/PRC +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/PST8PDT +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Apia +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Auckland +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Bougainville +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Chatham +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Chuuk +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Easter +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Efate +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Enderbury +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Fakaofo +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Fiji +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Funafuti +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Galapagos +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Gambier +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Guadalcanal +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Guam +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Honolulu +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Johnston +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Kanton +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Kiritimati +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Kosrae +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Kwajalein +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Majuro +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Marquesas +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Midway +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Nauru +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Niue +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Norfolk +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Noumea +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Pago_Pago +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Palau +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Pitcairn +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Pohnpei +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Ponape +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Port_Moresby +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Rarotonga +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Saipan +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Samoa +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Tahiti +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Tarawa +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Tongatapu +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Truk +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Wake +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Wallis +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Pacific/Yap +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Poland +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Portugal +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/ROC +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/ROK +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Singapore +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Turkey +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/UCT +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/US/Alaska +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/US/Aleutian +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/US/Arizona +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/US/Central +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/US/East-Indiana +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/US/Eastern +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/US/Hawaii +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/US/Indiana-Starke +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/US/Michigan +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/US/Mountain +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/US/Pacific +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/US/Samoa +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/UTC +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Universal +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/VERSION +1 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/W-SU +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/WET +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/Zulu +0 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/iso3166.tab +274 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/zone.tab +448 -0
- package/dist/vfs/usr/lib/R/share/zoneinfo/zone1970.tab +374 -0
- package/dist/vfs/usr/lib/R/tests/CRANtools.R +35 -0
- package/dist/vfs/usr/lib/R/tests/EmbeddedNuls.csv +0 -0
- package/dist/vfs/usr/lib/R/tests/Examples/datasets-Ex.Rout.save +3602 -0
- package/dist/vfs/usr/lib/R/tests/Examples/grDevices-Ex.Rout.save +4379 -0
- package/dist/vfs/usr/lib/R/tests/Examples/graphics-Ex.Rout.save +3237 -0
- package/dist/vfs/usr/lib/R/tests/Examples/grid-Ex.Rout.save +2458 -0
- package/dist/vfs/usr/lib/R/tests/Examples/splines-Ex.Rout.save +599 -0
- package/dist/vfs/usr/lib/R/tests/Examples/stats-Ex.Rout.save +19391 -0
- package/dist/vfs/usr/lib/R/tests/Examples/stats4-Ex.Rout.save +340 -0
- package/dist/vfs/usr/lib/R/tests/Examples/tools-Ex.Rout.save +1125 -0
- package/dist/vfs/usr/lib/R/tests/Makefile +76 -0
- package/dist/vfs/usr/lib/R/tests/Makefile.common +529 -0
- package/dist/vfs/usr/lib/R/tests/PCRE.R +123 -0
- package/dist/vfs/usr/lib/R/tests/README +117 -0
- package/dist/vfs/usr/lib/R/tests/WinUnicode.dat +0 -0
- package/dist/vfs/usr/lib/R/tests/any-all.R +93 -0
- package/dist/vfs/usr/lib/R/tests/any-all.Rout.save +111 -0
- package/dist/vfs/usr/lib/R/tests/arima.rda +0 -0
- package/dist/vfs/usr/lib/R/tests/arith-true.R +220 -0
- package/dist/vfs/usr/lib/R/tests/arith-true.Rout.save +327 -0
- package/dist/vfs/usr/lib/R/tests/arith.R +26 -0
- package/dist/vfs/usr/lib/R/tests/arith.Rout.save +88 -0
- package/dist/vfs/usr/lib/R/tests/array-subset.R +86 -0
- package/dist/vfs/usr/lib/R/tests/complex.R +159 -0
- package/dist/vfs/usr/lib/R/tests/complex.Rout.save +297 -0
- package/dist/vfs/usr/lib/R/tests/conditions.R +155 -0
- package/dist/vfs/usr/lib/R/tests/d-p-q-r-tests.R +504 -0
- package/dist/vfs/usr/lib/R/tests/d-p-q-r-tests.Rout.save +884 -0
- package/dist/vfs/usr/lib/R/tests/d-p-q-r-tst-2.R +829 -0
- package/dist/vfs/usr/lib/R/tests/datasets.R +9 -0
- package/dist/vfs/usr/lib/R/tests/datasets.Rout.save +669 -0
- package/dist/vfs/usr/lib/R/tests/datetime.R +43 -0
- package/dist/vfs/usr/lib/R/tests/datetime.Rout.save +81 -0
- package/dist/vfs/usr/lib/R/tests/datetime2.R +150 -0
- package/dist/vfs/usr/lib/R/tests/datetime2.Rout.save +529 -0
- package/dist/vfs/usr/lib/R/tests/datetime3.R +535 -0
- package/dist/vfs/usr/lib/R/tests/datetime4.R +94 -0
- package/dist/vfs/usr/lib/R/tests/datetime4.Rout.save +386 -0
- package/dist/vfs/usr/lib/R/tests/datetime5.R +30 -0
- package/dist/vfs/usr/lib/R/tests/datetime5.Rout.save +92 -0
- package/dist/vfs/usr/lib/R/tests/demos.R +30 -0
- package/dist/vfs/usr/lib/R/tests/demos.Rout.save +1642 -0
- package/dist/vfs/usr/lib/R/tests/demos2.R +9 -0
- package/dist/vfs/usr/lib/R/tests/encodings.R +27 -0
- package/dist/vfs/usr/lib/R/tests/eval-etc.R +234 -0
- package/dist/vfs/usr/lib/R/tests/eval-etc.Rout.save +1014 -0
- package/dist/vfs/usr/lib/R/tests/eval-fns.R +99 -0
- package/dist/vfs/usr/lib/R/tests/iconv.R +35 -0
- package/dist/vfs/usr/lib/R/tests/iec60559.R +18 -0
- package/dist/vfs/usr/lib/R/tests/iec60559.Rout.save +60 -0
- package/dist/vfs/usr/lib/R/tests/internet.R +20 -0
- package/dist/vfs/usr/lib/R/tests/internet.Rout.save +164 -0
- package/dist/vfs/usr/lib/R/tests/internet2.R +69 -0
- package/dist/vfs/usr/lib/R/tests/isas-tests.Rin +60 -0
- package/dist/vfs/usr/lib/R/tests/isas-tests.Rout.save +2598 -0
- package/dist/vfs/usr/lib/R/tests/lapack.R +175 -0
- package/dist/vfs/usr/lib/R/tests/lapack.Rout.save +435 -0
- package/dist/vfs/usr/lib/R/tests/libcurl.R +88 -0
- package/dist/vfs/usr/lib/R/tests/lm-tests.R +101 -0
- package/dist/vfs/usr/lib/R/tests/lm-tests.Rout.save +414 -0
- package/dist/vfs/usr/lib/R/tests/method-dispatch.R +157 -0
- package/dist/vfs/usr/lib/R/tests/method-dispatch.Rout.save +222 -0
- package/dist/vfs/usr/lib/R/tests/nanbug.rda +0 -0
- package/dist/vfs/usr/lib/R/tests/no-segfault.Rin +143 -0
- package/dist/vfs/usr/lib/R/tests/ok-errors.R +24 -0
- package/dist/vfs/usr/lib/R/tests/ok-errors.Rout.save +44 -0
- package/dist/vfs/usr/lib/R/tests/p-qbeta-strict-tst.R +595 -0
- package/dist/vfs/usr/lib/R/tests/p-r-random-tests.R +181 -0
- package/dist/vfs/usr/lib/R/tests/p-r-random-tests.Rout.save +326 -0
- package/dist/vfs/usr/lib/R/tests/primitives.R +146 -0
- package/dist/vfs/usr/lib/R/tests/print-tests.R +343 -0
- package/dist/vfs/usr/lib/R/tests/print-tests.Rout.save +946 -0
- package/dist/vfs/usr/lib/R/tests/r-strict-tst.R +57 -0
- package/dist/vfs/usr/lib/R/tests/reg-BLAS.R +135 -0
- package/dist/vfs/usr/lib/R/tests/reg-IO.R +60 -0
- package/dist/vfs/usr/lib/R/tests/reg-IO.Rout.save +176 -0
- package/dist/vfs/usr/lib/R/tests/reg-IO2.R +124 -0
- package/dist/vfs/usr/lib/R/tests/reg-IO2.Rout.save +252 -0
- package/dist/vfs/usr/lib/R/tests/reg-S4-examples.R +357 -0
- package/dist/vfs/usr/lib/R/tests/reg-S4.R +1024 -0
- package/dist/vfs/usr/lib/R/tests/reg-S4.Rout.save +1365 -0
- package/dist/vfs/usr/lib/R/tests/reg-examples1.R +92 -0
- package/dist/vfs/usr/lib/R/tests/reg-examples2.R +38 -0
- package/dist/vfs/usr/lib/R/tests/reg-examples3.Rout.save +546 -0
- package/dist/vfs/usr/lib/R/tests/reg-packages.R +559 -0
- package/dist/vfs/usr/lib/R/tests/reg-plot-latin1.R +6 -0
- package/dist/vfs/usr/lib/R/tests/reg-plot-latin1.pdf.save +649 -0
- package/dist/vfs/usr/lib/R/tests/reg-plot.R +298 -0
- package/dist/vfs/usr/lib/R/tests/reg-plot.pdf.save +11498 -0
- package/dist/vfs/usr/lib/R/tests/reg-tests-1a.R +4898 -0
- package/dist/vfs/usr/lib/R/tests/reg-tests-1b.R +2120 -0
- package/dist/vfs/usr/lib/R/tests/reg-tests-1c.R +1631 -0
- package/dist/vfs/usr/lib/R/tests/reg-tests-1d.R +5797 -0
- package/dist/vfs/usr/lib/R/tests/reg-tests-1e.R +557 -0
- package/dist/vfs/usr/lib/R/tests/reg-tests-2.R +3370 -0
- package/dist/vfs/usr/lib/R/tests/reg-tests-2.Rout.save +8317 -0
- package/dist/vfs/usr/lib/R/tests/reg-tests-3.Rout.save +1075 -0
- package/dist/vfs/usr/lib/R/tests/reg-translation.R +125 -0
- package/dist/vfs/usr/lib/R/tests/simple-true.R +190 -0
- package/dist/vfs/usr/lib/R/tests/simple-true.Rout.save +300 -0
- package/dist/vfs/usr/lib/R/tests/structure.R +48 -0
- package/dist/vfs/usr/lib/R/tests/structure.Rout.save +88 -0
- package/dist/vfs/usr/lib/R/tests/timezone.R +9 -0
- package/dist/vfs/usr/lib/R/tests/utf8-regex.R +373 -0
- package/dist/webR/chan/channel-common.d.ts +19 -0
- package/dist/webR/chan/channel-service.d.ts +30 -0
- package/dist/webR/chan/channel-shared.d.ts +24 -0
- package/dist/webR/chan/channel.d.ts +43 -0
- package/dist/webR/chan/message.d.ts +50 -0
- package/dist/webR/chan/queue.d.ts +17 -0
- package/dist/webR/chan/serviceworker.d.ts +6 -0
- package/dist/webR/chan/task-common.d.ts +17 -0
- package/dist/webR/chan/task-main.d.ts +15 -0
- package/dist/webR/chan/task-worker.d.ts +42 -0
- package/dist/webR/compat.d.ts +2 -0
- package/dist/webR/config.d.ts +2 -0
- package/dist/webR/console.d.ts +68 -0
- package/dist/webR/emscripten.d.ts +126 -0
- package/dist/webR/payload.d.ts +47 -0
- package/dist/webR/proxy.d.ts +115 -0
- package/dist/webR/robj-main.d.ts +112 -0
- package/dist/webR/robj-worker.d.ts +225 -0
- package/dist/webR/robj.d.ts +113 -0
- package/dist/webR/utils-r.d.ts +25 -0
- package/dist/webR/utils.d.ts +12 -0
- package/dist/webR/webr-chan.d.ts +141 -0
- package/dist/webR/webr-main.d.ts +282 -0
- package/dist/webR/webr-worker.d.ts +1 -0
- package/dist/webr-serviceworker.js +1654 -0
- package/dist/webr-serviceworker.js.map +7 -0
- package/dist/webr-serviceworker.mjs +1658 -0
- package/dist/webr-serviceworker.mjs.map +7 -0
- package/dist/webr-worker.js +4546 -0
- package/dist/webr-worker.js.map +7 -0
- package/dist/webr.cjs +4 -0
- package/dist/webr.cjs.map +7 -0
- package/dist/webr.mjs +4 -0
- package/dist/webr.mjs.map +7 -0
- package/package.json +1 -1
|
@@ -0,0 +1,3237 @@
|
|
|
1
|
+
|
|
2
|
+
R Under development (unstable) (2023-01-13 r83608) -- "Unsuffered Consequences"
|
|
3
|
+
Copyright (C) 2023 The R Foundation for Statistical Computing
|
|
4
|
+
Platform: x86_64-pc-linux-gnu (64-bit)
|
|
5
|
+
|
|
6
|
+
R is free software and comes with ABSOLUTELY NO WARRANTY.
|
|
7
|
+
You are welcome to redistribute it under certain conditions.
|
|
8
|
+
Type 'license()' or 'licence()' for distribution details.
|
|
9
|
+
|
|
10
|
+
Natural language support but running in an English locale
|
|
11
|
+
|
|
12
|
+
R is a collaborative project with many contributors.
|
|
13
|
+
Type 'contributors()' for more information and
|
|
14
|
+
'citation()' on how to cite R or R packages in publications.
|
|
15
|
+
|
|
16
|
+
Type 'demo()' for some demos, 'help()' for on-line help, or
|
|
17
|
+
'help.start()' for an HTML browser interface to help.
|
|
18
|
+
Type 'q()' to quit R.
|
|
19
|
+
|
|
20
|
+
> pkgname <- "graphics"
|
|
21
|
+
> source(file.path(R.home("share"), "R", "examples-header.R"))
|
|
22
|
+
> options(warn = 1)
|
|
23
|
+
> library('graphics')
|
|
24
|
+
>
|
|
25
|
+
> base::assign(".oldSearch", base::search(), pos = 'CheckExEnv')
|
|
26
|
+
> base::assign(".old_wd", base::getwd(), pos = 'CheckExEnv')
|
|
27
|
+
> cleanEx()
|
|
28
|
+
> nameEx("abline")
|
|
29
|
+
> ### * abline
|
|
30
|
+
>
|
|
31
|
+
> flush(stderr()); flush(stdout())
|
|
32
|
+
>
|
|
33
|
+
> ### Name: abline
|
|
34
|
+
> ### Title: Add Straight Lines to a Plot
|
|
35
|
+
> ### Aliases: abline
|
|
36
|
+
> ### Keywords: aplot
|
|
37
|
+
>
|
|
38
|
+
> ### ** Examples
|
|
39
|
+
>
|
|
40
|
+
> ## Setup up coordinate system (with x == y aspect ratio):
|
|
41
|
+
> plot(c(-2,3), c(-1,5), type = "n", xlab = "x", ylab = "y", asp = 1)
|
|
42
|
+
> ## the x- and y-axis, and an integer grid
|
|
43
|
+
> abline(h = 0, v = 0, col = "gray60")
|
|
44
|
+
> text(1,0, "abline( h = 0 )", col = "gray60", adj = c(0, -.1))
|
|
45
|
+
> abline(h = -1:5, v = -2:3, col = "lightgray", lty = 3)
|
|
46
|
+
> abline(a = 1, b = 2, col = 2)
|
|
47
|
+
> text(1,3, "abline( 1, 2 )", col = 2, adj = c(-.1, -.1))
|
|
48
|
+
>
|
|
49
|
+
> ## Simple Regression Lines:
|
|
50
|
+
> require(stats)
|
|
51
|
+
> sale5 <- c(6, 4, 9, 7, 6, 12, 8, 10, 9, 13)
|
|
52
|
+
> plot(sale5)
|
|
53
|
+
> abline(lsfit(1:10, sale5))
|
|
54
|
+
> abline(lsfit(1:10, sale5, intercept = FALSE), col = 4) # less fitting
|
|
55
|
+
>
|
|
56
|
+
> z <- lm(dist ~ speed, data = cars)
|
|
57
|
+
> plot(cars)
|
|
58
|
+
> abline(z) # equivalent to abline(reg = z) or
|
|
59
|
+
> abline(coef = coef(z))
|
|
60
|
+
>
|
|
61
|
+
> ## trivial intercept model
|
|
62
|
+
> abline(mC <- lm(dist ~ 1, data = cars)) ## the same as
|
|
63
|
+
> abline(a = coef(mC), b = 0, col = "blue")
|
|
64
|
+
>
|
|
65
|
+
>
|
|
66
|
+
>
|
|
67
|
+
> cleanEx()
|
|
68
|
+
> nameEx("arrows")
|
|
69
|
+
> ### * arrows
|
|
70
|
+
>
|
|
71
|
+
> flush(stderr()); flush(stdout())
|
|
72
|
+
>
|
|
73
|
+
> ### Name: arrows
|
|
74
|
+
> ### Title: Add Arrows to a Plot
|
|
75
|
+
> ### Aliases: arrows
|
|
76
|
+
> ### Keywords: aplot
|
|
77
|
+
>
|
|
78
|
+
> ### ** Examples
|
|
79
|
+
>
|
|
80
|
+
> x <- stats::runif(12); y <- stats::rnorm(12)
|
|
81
|
+
> i <- order(x, y); x <- x[i]; y <- y[i]
|
|
82
|
+
> plot(x,y, main = "arrows(.) and segments(.)")
|
|
83
|
+
> ## draw arrows from point to point :
|
|
84
|
+
> s <- seq(length(x)-1) # one shorter than data
|
|
85
|
+
> arrows(x[s], y[s], x[s+1], y[s+1], col = 1:3)
|
|
86
|
+
> s <- s[-length(s)]
|
|
87
|
+
> segments(x[s], y[s], x[s+2], y[s+2], col = "pink")
|
|
88
|
+
>
|
|
89
|
+
>
|
|
90
|
+
>
|
|
91
|
+
> cleanEx()
|
|
92
|
+
> nameEx("assocplot")
|
|
93
|
+
> ### * assocplot
|
|
94
|
+
>
|
|
95
|
+
> flush(stderr()); flush(stdout())
|
|
96
|
+
>
|
|
97
|
+
> ### Name: assocplot
|
|
98
|
+
> ### Title: Association Plots
|
|
99
|
+
> ### Aliases: assocplot
|
|
100
|
+
> ### Keywords: hplot
|
|
101
|
+
>
|
|
102
|
+
> ### ** Examples
|
|
103
|
+
>
|
|
104
|
+
> ## Aggregate over sex:
|
|
105
|
+
> x <- marginSums(HairEyeColor, c(1, 2))
|
|
106
|
+
> x
|
|
107
|
+
Eye
|
|
108
|
+
Hair Brown Blue Hazel Green
|
|
109
|
+
Black 68 20 15 5
|
|
110
|
+
Brown 119 84 54 29
|
|
111
|
+
Red 26 17 14 14
|
|
112
|
+
Blond 7 94 10 16
|
|
113
|
+
> assocplot(x, main = "Relation between hair and eye color")
|
|
114
|
+
>
|
|
115
|
+
>
|
|
116
|
+
>
|
|
117
|
+
> cleanEx()
|
|
118
|
+
> nameEx("axTicks")
|
|
119
|
+
> ### * axTicks
|
|
120
|
+
>
|
|
121
|
+
> flush(stderr()); flush(stdout())
|
|
122
|
+
>
|
|
123
|
+
> ### Name: axTicks
|
|
124
|
+
> ### Title: Compute Axis Tickmark Locations
|
|
125
|
+
> ### Aliases: axTicks
|
|
126
|
+
> ### Keywords: dplot
|
|
127
|
+
>
|
|
128
|
+
> ### ** Examples
|
|
129
|
+
>
|
|
130
|
+
> plot(1:7, 10*21:27)
|
|
131
|
+
> axTicks(1)
|
|
132
|
+
[1] 1 2 3 4 5 6 7
|
|
133
|
+
> axTicks(2)
|
|
134
|
+
[1] 210 220 230 240 250 260 270
|
|
135
|
+
> stopifnot(identical(axTicks(1), axTicks(3)),
|
|
136
|
+
+ identical(axTicks(2), axTicks(4)))
|
|
137
|
+
>
|
|
138
|
+
> ## Show how axTicks() and axis() correspond :
|
|
139
|
+
> op <- par(mfrow = c(3, 1))
|
|
140
|
+
> for(x in 9999 * c(1, 2, 8)) {
|
|
141
|
+
+ plot(x, 9, log = "x")
|
|
142
|
+
+ cat(formatC(par("xaxp"), width = 5),";", T <- axTicks(1),"\n")
|
|
143
|
+
+ rug(T, col = adjustcolor("red", 0.5), lwd = 4)
|
|
144
|
+
+ }
|
|
145
|
+
1000 1e+05 3 ; 200 500 1000 2000 5000 10000 20000 50000 1e+05 2e+05 5e+05
|
|
146
|
+
1000 1e+06 2 ; 500 1000 5000 10000 50000 1e+05 5e+05 1e+06
|
|
147
|
+
1000 1e+07 1 ; 1000 10000 1e+05 1e+06 1e+07
|
|
148
|
+
> par(op)
|
|
149
|
+
>
|
|
150
|
+
> x <- 9.9*10^(-3:10)
|
|
151
|
+
> plot(x, 1:14, log = "x")
|
|
152
|
+
> axTicks(1) # now length 7
|
|
153
|
+
[1] 1e-02 1e+00 1e+02 1e+04 1e+06 1e+08 1e+10
|
|
154
|
+
> axTicks(1, nintLog = Inf) # rather too many
|
|
155
|
+
[1] 1e-02 1e-01 1e+00 1e+01 1e+02 1e+03 1e+04 1e+05 1e+06 1e+07 1e+08 1e+09
|
|
156
|
+
[13] 1e+10 1e+11
|
|
157
|
+
>
|
|
158
|
+
> ## An example using axTicks() without reference to an existing plot
|
|
159
|
+
> ## (copying R's internal procedures for setting axis ranges etc.),
|
|
160
|
+
> ## You do need to supply _all_ of axp, usr, log, nintLog
|
|
161
|
+
> ## standard logarithmic y axis labels
|
|
162
|
+
> ylims <- c(0.2, 88)
|
|
163
|
+
> get_axp <- function(x) 10^c(ceiling(x[1]), floor(x[2]))
|
|
164
|
+
> ## mimic par("yaxs") == "i"
|
|
165
|
+
> usr.i <- log10(ylims)
|
|
166
|
+
> (aT.i <- axTicks(side = 2, usr = usr.i,
|
|
167
|
+
+ axp = c(get_axp(usr.i), n = 3), log = TRUE, nintLog = 5))
|
|
168
|
+
[1] 0.2 0.5 1.0 2.0 5.0 10.0 20.0 50.0
|
|
169
|
+
> ## mimic (default) par("yaxs") == "r"
|
|
170
|
+
> usr.r <- extendrange(r = log10(ylims), f = 0.04)
|
|
171
|
+
> (aT.r <- axTicks(side = 2, usr = usr.r,
|
|
172
|
+
+ axp = c(get_axp(usr.r), 3), log = TRUE, nintLog = 5))
|
|
173
|
+
[1] 0.2 0.5 1.0 2.0 5.0 10.0 20.0 50.0 100.0
|
|
174
|
+
>
|
|
175
|
+
> ## Prove that we got it right :
|
|
176
|
+
> plot(0:1, ylims, log = "y", yaxs = "i")
|
|
177
|
+
> stopifnot(all.equal(aT.i, axTicks(side = 2)))
|
|
178
|
+
>
|
|
179
|
+
> plot(0:1, ylims, log = "y", yaxs = "r")
|
|
180
|
+
> stopifnot(all.equal(aT.r, axTicks(side = 2)))
|
|
181
|
+
>
|
|
182
|
+
>
|
|
183
|
+
>
|
|
184
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
185
|
+
> cleanEx()
|
|
186
|
+
> nameEx("axis.POSIXct")
|
|
187
|
+
> ### * axis.POSIXct
|
|
188
|
+
>
|
|
189
|
+
> flush(stderr()); flush(stdout())
|
|
190
|
+
>
|
|
191
|
+
> ### Name: axis.POSIXct
|
|
192
|
+
> ### Title: Date and Date-time Plotting Functions
|
|
193
|
+
> ### Aliases: axis.POSIXct axis.Date
|
|
194
|
+
> ### Keywords: utilities chron
|
|
195
|
+
>
|
|
196
|
+
> ### ** Examples
|
|
197
|
+
>
|
|
198
|
+
> with(beaver1, {
|
|
199
|
+
+ opar <- par(mfrow = c(2,1))
|
|
200
|
+
+ time <- strptime(paste(1990, day, time %/% 100, time %% 100),
|
|
201
|
+
+ "%Y %j %H %M")
|
|
202
|
+
+ plot(time, temp, type = "l") # axis at 5-hour intervals.
|
|
203
|
+
+ # now label every hour on the time axis
|
|
204
|
+
+ plot(time, temp, type = "l", xaxt = "n")
|
|
205
|
+
+ r <- as.POSIXct(round(range(time), "hours"))
|
|
206
|
+
+ axis.POSIXct(1, at = seq(r[1], r[2], by = "hour"), format = "%H")
|
|
207
|
+
+ par(opar) # reset changed par settings
|
|
208
|
+
+ })
|
|
209
|
+
>
|
|
210
|
+
> plot(.leap.seconds, seq_along(.leap.seconds), type = "n", yaxt = "n",
|
|
211
|
+
+ xlab = "leap seconds", ylab = "", bty = "n")
|
|
212
|
+
> rug(.leap.seconds)
|
|
213
|
+
> ## or as dates
|
|
214
|
+
> lps <- as.Date(.leap.seconds)
|
|
215
|
+
> plot(lps, seq_along(.leap.seconds),
|
|
216
|
+
+ type = "n", yaxt = "n", xlab = "leap seconds",
|
|
217
|
+
+ ylab = "", bty = "n")
|
|
218
|
+
> rug(lps)
|
|
219
|
+
>
|
|
220
|
+
> ## 100 random dates in a 10-week period
|
|
221
|
+
> random.dates <- as.Date("2001/1/1") + 70*sort(stats::runif(100))
|
|
222
|
+
> plot(random.dates, 1:100)
|
|
223
|
+
> # or for a better axis labelling
|
|
224
|
+
> plot(random.dates, 1:100, xaxt = "n")
|
|
225
|
+
> axis.Date(1, at = seq(as.Date("2001/1/1"), max(random.dates)+6, "weeks"))
|
|
226
|
+
> axis.Date(1, at = seq(as.Date("2001/1/1"), max(random.dates)+6, "days"),
|
|
227
|
+
+ labels = FALSE, tcl = -0.2)
|
|
228
|
+
>
|
|
229
|
+
> ## axis.Date() with various data types:
|
|
230
|
+
> x <- seq(as.Date("2022-01-20"), as.Date("2023-03-21"), by = "days")
|
|
231
|
+
> plot(data.frame(x, y = 1), xaxt = "n")
|
|
232
|
+
> legend("topleft", title = "input",
|
|
233
|
+
+ legend = c("character", "Date", "POSIXct", "POSIXlt", "numeric"),
|
|
234
|
+
+ fill = c("violet", "red", "orange", "coral1", "darkgreen"))
|
|
235
|
+
> axis.Date(1)
|
|
236
|
+
> axis.Date(3, at = "2022-04-01", col.axis = "violet")
|
|
237
|
+
> axis.Date(3, at = as.Date("2022-07-01"), col.axis = "red")
|
|
238
|
+
> axis.Date(3, at = as.POSIXct(as.Date("2022-10-01")), col.axis = "orange")
|
|
239
|
+
> axis.Date(3, at = as.POSIXlt(as.Date("2023-01-01")), col.axis = "coral1")
|
|
240
|
+
> axis.Date(3, at = as.integer(as.Date("2023-04-01")), col.axis = "darkgreen")
|
|
241
|
+
> ## automatically extends the format:
|
|
242
|
+
> axis.Date(1, at = "2022-02-15", col.axis = "violet",
|
|
243
|
+
+ col = "violet", tck = -0.05, mgp = c(3,2,0))
|
|
244
|
+
>
|
|
245
|
+
> ## axis.POSIXct() with various data types (2 minutes):
|
|
246
|
+
> x <- as.POSIXct("2022-10-01") + c(0, 60, 120)
|
|
247
|
+
> attributes(x) # no timezone
|
|
248
|
+
$class
|
|
249
|
+
[1] "POSIXct" "POSIXt"
|
|
250
|
+
|
|
251
|
+
> plot(data.frame(x, y = 1), xaxt = "n")
|
|
252
|
+
> legend("topleft", title = "input",
|
|
253
|
+
+ legend = c("character", "Date", "POSIXct", "POSIXlt", "numeric"),
|
|
254
|
+
+ fill = c("violet", "red", "orange", "coral1", "darkgreen"))
|
|
255
|
+
> axis.POSIXct(1)
|
|
256
|
+
> axis.POSIXct(3, at = "2022-10-01 00:01", col.axis = "violet")
|
|
257
|
+
> axis.POSIXct(3, at = as.Date("2022-10-01"), col.axis = "red")
|
|
258
|
+
> axis.POSIXct(3, at = as.POSIXct("2022-10-01 00:01:30"), col.axis = "orange")
|
|
259
|
+
> axis.POSIXct(3, at = as.POSIXlt("2022-10-01 00:02"), col.axis = "coral1")
|
|
260
|
+
> axis.POSIXct(3, at = as.numeric(as.POSIXct("2022-10-01 00:00:30")),
|
|
261
|
+
+ col.axis = "darkgreen")
|
|
262
|
+
> ## automatically extends format (here: subseconds):
|
|
263
|
+
> axis.POSIXct(3, at = as.numeric(as.POSIXct("2022-10-01 00:00:30")) + 0.25,
|
|
264
|
+
+ col.axis = "forestgreen", col = "darkgreen", mgp = c(3,2,0))
|
|
265
|
+
>
|
|
266
|
+
> ## axis.POSIXct: 2 time zones
|
|
267
|
+
> HST <- as.POSIXct("2022-10-01", tz = "HST") + c(0, 60, 60*60)
|
|
268
|
+
> CET <- HST
|
|
269
|
+
> attr(CET, "tzone") <- "CET"
|
|
270
|
+
> plot(data.frame(HST, y = 1), xaxt = "n", xlab = "Hawaii Standard Time (HST)")
|
|
271
|
+
> axis.POSIXct(1, HST)
|
|
272
|
+
> axis.POSIXct(1, HST, at = "2022-10-01 00:10", col.axis = "violet")
|
|
273
|
+
> axis.POSIXct(3, CET)
|
|
274
|
+
> mtext(3, text = "Central European Time (CET)", line = 3)
|
|
275
|
+
> axis.POSIXct(3, CET, at="2022-10-01 12:10", col.axis = "violet")
|
|
276
|
+
>
|
|
277
|
+
>
|
|
278
|
+
>
|
|
279
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
280
|
+
> cleanEx()
|
|
281
|
+
> nameEx("axis")
|
|
282
|
+
> ### * axis
|
|
283
|
+
>
|
|
284
|
+
> flush(stderr()); flush(stdout())
|
|
285
|
+
>
|
|
286
|
+
> ### Name: axis
|
|
287
|
+
> ### Title: Add an Axis to a Plot
|
|
288
|
+
> ### Aliases: axis
|
|
289
|
+
> ### Keywords: aplot
|
|
290
|
+
>
|
|
291
|
+
> ### ** Examples
|
|
292
|
+
>
|
|
293
|
+
> require(stats) # for rnorm
|
|
294
|
+
> plot(1:4, rnorm(4), axes = FALSE)
|
|
295
|
+
> axis(1, 1:4, LETTERS[1:4])
|
|
296
|
+
> axis(2)
|
|
297
|
+
> box() #- to make it look "as usual"
|
|
298
|
+
>
|
|
299
|
+
> plot(1:7, rnorm(7), main = "axis() examples",
|
|
300
|
+
+ type = "s", xaxt = "n", frame.plot = FALSE, col = "red")
|
|
301
|
+
> axis(1, 1:7, LETTERS[1:7], col.axis = "blue")
|
|
302
|
+
> # unusual options:
|
|
303
|
+
> axis(4, col = "violet", col.axis = "dark violet", lwd = 2)
|
|
304
|
+
> axis(3, col = "gold", lty = 2, lwd = 0.5)
|
|
305
|
+
>
|
|
306
|
+
> # one way to have a custom x axis
|
|
307
|
+
> plot(1:10, xaxt = "n")
|
|
308
|
+
> axis(1, xaxp = c(2, 9, 7))
|
|
309
|
+
>
|
|
310
|
+
> ## Changing default gap between labels:
|
|
311
|
+
> plot(0:100, type="n", axes=FALSE, ann=FALSE)
|
|
312
|
+
> title(quote("axis(1, .., gap.axis = f)," ~~ f >= 0))
|
|
313
|
+
> axis(2, at = 5*(0:20), las = 1, gap.axis = 1/4)
|
|
314
|
+
> gaps <- c(4, 2, 1, 1/2, 1/4, 0.1, 0)
|
|
315
|
+
> chG <- paste0(ifelse(gaps == 1, "default: ", ""),
|
|
316
|
+
+ "gap.axis=", formatC(gaps))
|
|
317
|
+
> jj <- seq_along(gaps)
|
|
318
|
+
> linG <- -2.5*(jj-1)
|
|
319
|
+
> for(j in jj) {
|
|
320
|
+
+ isD <- gaps[j] == 1 # is default
|
|
321
|
+
+ axis (1, at=5*(0:20), gap.axis = gaps[j], padj=-1, line = linG[j],
|
|
322
|
+
+ col.axis = if(isD) "forest green" else 1, font.axis= 1+isD)
|
|
323
|
+
+ }
|
|
324
|
+
> mtext(chG, side=1, padj=-1, line = linG -1/2, cex=3/4,
|
|
325
|
+
+ col = ifelse(gaps == 1, "forest green", "blue3"))
|
|
326
|
+
> ## now shrink the window (in x- and y-direction) and observe the axis labels drawn
|
|
327
|
+
>
|
|
328
|
+
>
|
|
329
|
+
>
|
|
330
|
+
> cleanEx()
|
|
331
|
+
> nameEx("barplot")
|
|
332
|
+
> ### * barplot
|
|
333
|
+
>
|
|
334
|
+
> flush(stderr()); flush(stdout())
|
|
335
|
+
>
|
|
336
|
+
> ### Name: barplot
|
|
337
|
+
> ### Title: Bar Plots
|
|
338
|
+
> ### Aliases: barplot barplot.default barplot.formula
|
|
339
|
+
> ### Keywords: hplot
|
|
340
|
+
>
|
|
341
|
+
> ### ** Examples
|
|
342
|
+
>
|
|
343
|
+
> # Formula method
|
|
344
|
+
> barplot(GNP ~ Year, data = longley)
|
|
345
|
+
> barplot(cbind(Employed, Unemployed) ~ Year, data = longley)
|
|
346
|
+
>
|
|
347
|
+
> ## 3rd form of formula - 2 categories :
|
|
348
|
+
> op <- par(mfrow = 2:1, mgp = c(3,1,0)/2, mar = .1+c(3,3:1))
|
|
349
|
+
> summary(d.Titanic <- as.data.frame(Titanic))
|
|
350
|
+
Class Sex Age Survived Freq
|
|
351
|
+
1st :8 Male :16 Child:16 No :16 Min. : 0.00
|
|
352
|
+
2nd :8 Female:16 Adult:16 Yes:16 1st Qu.: 0.75
|
|
353
|
+
3rd :8 Median : 13.50
|
|
354
|
+
Crew:8 Mean : 68.78
|
|
355
|
+
3rd Qu.: 77.00
|
|
356
|
+
Max. :670.00
|
|
357
|
+
> barplot(Freq ~ Class + Survived, data = d.Titanic,
|
|
358
|
+
+ subset = Age == "Adult" & Sex == "Male",
|
|
359
|
+
+ main = "barplot(Freq ~ Class + Survived, *)", ylab = "# {passengers}", legend.text = TRUE)
|
|
360
|
+
> # Corresponding table :
|
|
361
|
+
> (xt <- xtabs(Freq ~ Survived + Class + Sex, d.Titanic, subset = Age=="Adult"))
|
|
362
|
+
, , Sex = Male
|
|
363
|
+
|
|
364
|
+
Class
|
|
365
|
+
Survived 1st 2nd 3rd Crew
|
|
366
|
+
No 118 154 387 670
|
|
367
|
+
Yes 57 14 75 192
|
|
368
|
+
|
|
369
|
+
, , Sex = Female
|
|
370
|
+
|
|
371
|
+
Class
|
|
372
|
+
Survived 1st 2nd 3rd Crew
|
|
373
|
+
No 4 13 89 3
|
|
374
|
+
Yes 140 80 76 20
|
|
375
|
+
|
|
376
|
+
> # Alternatively, a mosaic plot :
|
|
377
|
+
> mosaicplot(xt[,,"Male"], main = "mosaicplot(Freq ~ Class + Survived, *)", color=TRUE)
|
|
378
|
+
> par(op)
|
|
379
|
+
>
|
|
380
|
+
>
|
|
381
|
+
> # Default method
|
|
382
|
+
> require(grDevices) # for colours
|
|
383
|
+
> tN <- table(Ni <- stats::rpois(100, lambda = 5))
|
|
384
|
+
> r <- barplot(tN, col = rainbow(20))
|
|
385
|
+
> #- type = "h" plotting *is* 'bar'plot
|
|
386
|
+
> lines(r, tN, type = "h", col = "red", lwd = 2)
|
|
387
|
+
>
|
|
388
|
+
> barplot(tN, space = 1.5, axisnames = FALSE,
|
|
389
|
+
+ sub = "barplot(..., space= 1.5, axisnames = FALSE)")
|
|
390
|
+
>
|
|
391
|
+
> barplot(VADeaths, plot = FALSE)
|
|
392
|
+
[1] 0.7 1.9 3.1 4.3
|
|
393
|
+
> barplot(VADeaths, plot = FALSE, beside = TRUE)
|
|
394
|
+
[,1] [,2] [,3] [,4]
|
|
395
|
+
[1,] 1.5 7.5 13.5 19.5
|
|
396
|
+
[2,] 2.5 8.5 14.5 20.5
|
|
397
|
+
[3,] 3.5 9.5 15.5 21.5
|
|
398
|
+
[4,] 4.5 10.5 16.5 22.5
|
|
399
|
+
[5,] 5.5 11.5 17.5 23.5
|
|
400
|
+
>
|
|
401
|
+
> mp <- barplot(VADeaths) # default
|
|
402
|
+
> tot <- colMeans(VADeaths)
|
|
403
|
+
> text(mp, tot + 3, format(tot), xpd = TRUE, col = "blue")
|
|
404
|
+
> barplot(VADeaths, beside = TRUE,
|
|
405
|
+
+ col = c("lightblue", "mistyrose", "lightcyan",
|
|
406
|
+
+ "lavender", "cornsilk"),
|
|
407
|
+
+ legend.text = rownames(VADeaths), ylim = c(0, 100))
|
|
408
|
+
> title(main = "Death Rates in Virginia", font.main = 4)
|
|
409
|
+
>
|
|
410
|
+
> hh <- t(VADeaths)[, 5:1]
|
|
411
|
+
> mybarcol <- "gray20"
|
|
412
|
+
> mp <- barplot(hh, beside = TRUE,
|
|
413
|
+
+ col = c("lightblue", "mistyrose",
|
|
414
|
+
+ "lightcyan", "lavender"),
|
|
415
|
+
+ legend.text = colnames(VADeaths), ylim = c(0,100),
|
|
416
|
+
+ main = "Death Rates in Virginia", font.main = 4,
|
|
417
|
+
+ sub = "Faked upper 2*sigma error bars", col.sub = mybarcol,
|
|
418
|
+
+ cex.names = 1.5)
|
|
419
|
+
> segments(mp, hh, mp, hh + 2*sqrt(1000*hh/100), col = mybarcol, lwd = 1.5)
|
|
420
|
+
> stopifnot(dim(mp) == dim(hh)) # corresponding matrices
|
|
421
|
+
> mtext(side = 1, at = colMeans(mp), line = -2,
|
|
422
|
+
+ text = paste("Mean", formatC(colMeans(hh))), col = "red")
|
|
423
|
+
>
|
|
424
|
+
> # Bar shading example
|
|
425
|
+
> barplot(VADeaths, angle = 15+10*1:5, density = 20, col = "black",
|
|
426
|
+
+ legend.text = rownames(VADeaths))
|
|
427
|
+
> title(main = list("Death Rates in Virginia", font = 4))
|
|
428
|
+
>
|
|
429
|
+
> # Border color
|
|
430
|
+
> barplot(VADeaths, border = "dark blue")
|
|
431
|
+
>
|
|
432
|
+
> # Log scales (not much sense here)
|
|
433
|
+
> barplot(tN, col = heat.colors(12), log = "y")
|
|
434
|
+
> barplot(tN, col = gray.colors(20), log = "xy")
|
|
435
|
+
>
|
|
436
|
+
> # Legend location
|
|
437
|
+
> barplot(height = cbind(x = c(465, 91) / 465 * 100,
|
|
438
|
+
+ y = c(840, 200) / 840 * 100,
|
|
439
|
+
+ z = c(37, 17) / 37 * 100),
|
|
440
|
+
+ beside = FALSE,
|
|
441
|
+
+ width = c(465, 840, 37),
|
|
442
|
+
+ col = c(1, 2),
|
|
443
|
+
+ legend.text = c("A", "B"),
|
|
444
|
+
+ args.legend = list(x = "topleft"))
|
|
445
|
+
>
|
|
446
|
+
>
|
|
447
|
+
>
|
|
448
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
449
|
+
> cleanEx()
|
|
450
|
+
> nameEx("box")
|
|
451
|
+
> ### * box
|
|
452
|
+
>
|
|
453
|
+
> flush(stderr()); flush(stdout())
|
|
454
|
+
>
|
|
455
|
+
> ### Name: box
|
|
456
|
+
> ### Title: Draw a Box around a Plot
|
|
457
|
+
> ### Aliases: box
|
|
458
|
+
> ### Keywords: aplot
|
|
459
|
+
>
|
|
460
|
+
> ### ** Examples
|
|
461
|
+
>
|
|
462
|
+
> plot(1:7, abs(stats::rnorm(7)), type = "h", axes = FALSE)
|
|
463
|
+
> axis(1, at = 1:7, labels = letters[1:7])
|
|
464
|
+
> box(lty = '1373', col = 'red')
|
|
465
|
+
>
|
|
466
|
+
>
|
|
467
|
+
>
|
|
468
|
+
> cleanEx()
|
|
469
|
+
> nameEx("boxplot")
|
|
470
|
+
> ### * boxplot
|
|
471
|
+
>
|
|
472
|
+
> flush(stderr()); flush(stdout())
|
|
473
|
+
>
|
|
474
|
+
> ### Name: boxplot
|
|
475
|
+
> ### Title: Box Plots
|
|
476
|
+
> ### Aliases: boxplot boxplot.default boxplot.formula
|
|
477
|
+
> ### Keywords: hplot
|
|
478
|
+
>
|
|
479
|
+
> ### ** Examples
|
|
480
|
+
>
|
|
481
|
+
> ## boxplot on a formula:
|
|
482
|
+
> boxplot(count ~ spray, data = InsectSprays, col = "lightgray")
|
|
483
|
+
> # *add* notches (somewhat funny here <--> warning "notches .. outside hinges"):
|
|
484
|
+
> boxplot(count ~ spray, data = InsectSprays,
|
|
485
|
+
+ notch = TRUE, add = TRUE, col = "blue")
|
|
486
|
+
Warning in (function (z, notch = FALSE, width = NULL, varwidth = FALSE, :
|
|
487
|
+
some notches went outside hinges ('box'): maybe set notch=FALSE
|
|
488
|
+
>
|
|
489
|
+
> boxplot(decrease ~ treatment, data = OrchardSprays, col = "bisque",
|
|
490
|
+
+ log = "y")
|
|
491
|
+
> ## horizontal=TRUE, switching y <--> x :
|
|
492
|
+
> boxplot(decrease ~ treatment, data = OrchardSprays, col = "bisque",
|
|
493
|
+
+ log = "x", horizontal=TRUE)
|
|
494
|
+
>
|
|
495
|
+
> rb <- boxplot(decrease ~ treatment, data = OrchardSprays, col = "bisque")
|
|
496
|
+
> title("Comparing boxplot()s and non-robust mean +/- SD")
|
|
497
|
+
> mn.t <- tapply(OrchardSprays$decrease, OrchardSprays$treatment, mean)
|
|
498
|
+
> sd.t <- tapply(OrchardSprays$decrease, OrchardSprays$treatment, sd)
|
|
499
|
+
> xi <- 0.3 + seq(rb$n)
|
|
500
|
+
> points(xi, mn.t, col = "orange", pch = 18)
|
|
501
|
+
> arrows(xi, mn.t - sd.t, xi, mn.t + sd.t,
|
|
502
|
+
+ code = 3, col = "pink", angle = 75, length = .1)
|
|
503
|
+
>
|
|
504
|
+
> ## boxplot on a matrix:
|
|
505
|
+
> mat <- cbind(Uni05 = (1:100)/21, Norm = rnorm(100),
|
|
506
|
+
+ `5T` = rt(100, df = 5), Gam2 = rgamma(100, shape = 2))
|
|
507
|
+
> boxplot(mat) # directly, calling boxplot.matrix()
|
|
508
|
+
>
|
|
509
|
+
> ## boxplot on a data frame:
|
|
510
|
+
> df. <- as.data.frame(mat)
|
|
511
|
+
> par(las = 1) # all axis labels horizontal
|
|
512
|
+
> boxplot(df., main = "boxplot(*, horizontal = TRUE)", horizontal = TRUE)
|
|
513
|
+
>
|
|
514
|
+
> ## Using 'at = ' and adding boxplots -- example idea by Roger Bivand :
|
|
515
|
+
> boxplot(len ~ dose, data = ToothGrowth,
|
|
516
|
+
+ boxwex = 0.25, at = 1:3 - 0.2,
|
|
517
|
+
+ subset = supp == "VC", col = "yellow",
|
|
518
|
+
+ main = "Guinea Pigs' Tooth Growth",
|
|
519
|
+
+ xlab = "Vitamin C dose mg",
|
|
520
|
+
+ ylab = "tooth length",
|
|
521
|
+
+ xlim = c(0.5, 3.5), ylim = c(0, 35), yaxs = "i")
|
|
522
|
+
> boxplot(len ~ dose, data = ToothGrowth, add = TRUE,
|
|
523
|
+
+ boxwex = 0.25, at = 1:3 + 0.2,
|
|
524
|
+
+ subset = supp == "OJ", col = "orange")
|
|
525
|
+
> legend(2, 9, c("Ascorbic acid", "Orange juice"),
|
|
526
|
+
+ fill = c("yellow", "orange"))
|
|
527
|
+
>
|
|
528
|
+
> ## With less effort (slightly different) using factor *interaction*:
|
|
529
|
+
> boxplot(len ~ dose:supp, data = ToothGrowth,
|
|
530
|
+
+ boxwex = 0.5, col = c("orange", "yellow"),
|
|
531
|
+
+ main = "Guinea Pigs' Tooth Growth",
|
|
532
|
+
+ xlab = "Vitamin C dose mg", ylab = "tooth length",
|
|
533
|
+
+ sep = ":", lex.order = TRUE, ylim = c(0, 35), yaxs = "i")
|
|
534
|
+
>
|
|
535
|
+
> ## more examples in help(bxp)
|
|
536
|
+
>
|
|
537
|
+
>
|
|
538
|
+
>
|
|
539
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
540
|
+
> cleanEx()
|
|
541
|
+
> nameEx("boxplot.matrix")
|
|
542
|
+
> ### * boxplot.matrix
|
|
543
|
+
>
|
|
544
|
+
> flush(stderr()); flush(stdout())
|
|
545
|
+
>
|
|
546
|
+
> ### Name: boxplot.matrix
|
|
547
|
+
> ### Title: Draw a Boxplot for each Column (Row) of a Matrix
|
|
548
|
+
> ### Aliases: boxplot.matrix
|
|
549
|
+
> ### Keywords: hplot
|
|
550
|
+
>
|
|
551
|
+
> ### ** Examples
|
|
552
|
+
>
|
|
553
|
+
> ## Very similar to the example in ?boxplot
|
|
554
|
+
> mat <- cbind(Uni05 = (1:100)/21, Norm = rnorm(100),
|
|
555
|
+
+ T5 = rt(100, df = 5), Gam2 = rgamma(100, shape = 2))
|
|
556
|
+
> boxplot(mat, main = "boxplot.matrix(...., main = ...)",
|
|
557
|
+
+ notch = TRUE, col = 1:4)
|
|
558
|
+
>
|
|
559
|
+
>
|
|
560
|
+
>
|
|
561
|
+
> cleanEx()
|
|
562
|
+
> nameEx("bxp")
|
|
563
|
+
> ### * bxp
|
|
564
|
+
>
|
|
565
|
+
> flush(stderr()); flush(stdout())
|
|
566
|
+
>
|
|
567
|
+
> ### Name: bxp
|
|
568
|
+
> ### Title: Draw Box Plots from Summaries
|
|
569
|
+
> ### Aliases: bxp
|
|
570
|
+
> ### Keywords: aplot
|
|
571
|
+
>
|
|
572
|
+
> ### ** Examples
|
|
573
|
+
>
|
|
574
|
+
> require(stats)
|
|
575
|
+
> set.seed(753)
|
|
576
|
+
> (bx.p <- boxplot(split(rt(100, 4), gl(5, 20))))
|
|
577
|
+
$stats
|
|
578
|
+
[,1] [,2] [,3] [,4] [,5]
|
|
579
|
+
[1,] -1.66391873 -2.02625162 -2.12785004 -2.76510496 -1.70034047
|
|
580
|
+
[2,] -0.55308292 -0.65897584 -0.86705616 -1.63431484 -0.81848966
|
|
581
|
+
[3,] -0.06763313 0.04887846 0.09674026 -0.06712275 -0.01150075
|
|
582
|
+
[4,] 0.68813940 0.91705734 1.05562526 0.56746581 0.49017934
|
|
583
|
+
[5,] 1.14222667 3.16270157 2.07574986 2.09523462 1.87734641
|
|
584
|
+
|
|
585
|
+
$n
|
|
586
|
+
[1] 20 20 20 20 20
|
|
587
|
+
|
|
588
|
+
$conf
|
|
589
|
+
[,1] [,2] [,3] [,4] [,5]
|
|
590
|
+
[1,] -0.5061554 -0.5079321 -0.5825407 -0.8450091 -0.4738519
|
|
591
|
+
[2,] 0.3708891 0.6056890 0.7760212 0.7107636 0.4508504
|
|
592
|
+
|
|
593
|
+
$out
|
|
594
|
+
[1] 4.115274 3.224584 3.920438 4.168341 -4.357819 2.498006
|
|
595
|
+
|
|
596
|
+
$group
|
|
597
|
+
[1] 1 1 1 4 5 5
|
|
598
|
+
|
|
599
|
+
$names
|
|
600
|
+
[1] "1" "2" "3" "4" "5"
|
|
601
|
+
|
|
602
|
+
> op <- par(mfrow = c(2, 2))
|
|
603
|
+
> bxp(bx.p, xaxt = "n")
|
|
604
|
+
> bxp(bx.p, notch = TRUE, axes = FALSE, pch = 4, boxfill = 1:5)
|
|
605
|
+
Warning in bxp(bx.p, notch = TRUE, axes = FALSE, pch = 4, boxfill = 1:5) :
|
|
606
|
+
some notches went outside hinges ('box'): maybe set notch=FALSE
|
|
607
|
+
> bxp(bx.p, notch = TRUE, boxfill = "lightblue", frame.plot = FALSE,
|
|
608
|
+
+ outline = FALSE, main = "bxp(*, frame.plot= FALSE, outline= FALSE)")
|
|
609
|
+
Warning in bxp(bx.p, notch = TRUE, boxfill = "lightblue", frame.plot = FALSE, :
|
|
610
|
+
some notches went outside hinges ('box'): maybe set notch=FALSE
|
|
611
|
+
> bxp(bx.p, notch = TRUE, boxfill = "lightblue", border = 2:6,
|
|
612
|
+
+ ylim = c(-4,4), pch = 22, bg = "green", log = "x",
|
|
613
|
+
+ main = "... log = 'x', ylim = *")
|
|
614
|
+
Warning in bxp(bx.p, notch = TRUE, boxfill = "lightblue", border = 2:6, :
|
|
615
|
+
some notches went outside hinges ('box'): maybe set notch=FALSE
|
|
616
|
+
> par(op)
|
|
617
|
+
> op <- par(mfrow = c(1, 2))
|
|
618
|
+
>
|
|
619
|
+
> ## single group -- no label
|
|
620
|
+
> boxplot (weight ~ group, data = PlantGrowth, subset = group == "ctrl")
|
|
621
|
+
> ## with label
|
|
622
|
+
> bx <- boxplot(weight ~ group, data = PlantGrowth,
|
|
623
|
+
+ subset = group == "ctrl", plot = FALSE)
|
|
624
|
+
> bxp(bx, show.names=TRUE)
|
|
625
|
+
> par(op)
|
|
626
|
+
>
|
|
627
|
+
> ## passing gap.axis=* to axis(), PR#18109:
|
|
628
|
+
> boxplot(matrix(100*rnorm(1e3), 50, 20),
|
|
629
|
+
+ cex.axis = 1.5, gap.axis = -1)# showing *all* labels
|
|
630
|
+
>
|
|
631
|
+
> z <- split(rnorm(1000), rpois(1000, 2.2))
|
|
632
|
+
> boxplot(z, whisklty = 3, main = "boxplot(z, whisklty = 3)")
|
|
633
|
+
>
|
|
634
|
+
> ## Colour support similar to plot.default:
|
|
635
|
+
> op <- par(mfrow = 1:2, bg = "light gray", fg = "midnight blue")
|
|
636
|
+
> boxplot(z, col.axis = "skyblue3", main = "boxplot(*, col.axis=..,main=..)")
|
|
637
|
+
> plot(z[[1]], col.axis = "skyblue3", main = "plot(*, col.axis=..,main=..)")
|
|
638
|
+
> mtext("par(bg=\"light gray\", fg=\"midnight blue\")",
|
|
639
|
+
+ outer = TRUE, line = -1.2)
|
|
640
|
+
> par(op)
|
|
641
|
+
>
|
|
642
|
+
> ## Mimic S-Plus:
|
|
643
|
+
> splus <- list(boxwex = 0.4, staplewex = 1, outwex = 1, boxfill = "grey40",
|
|
644
|
+
+ medlwd = 3, medcol = "white", whisklty = 3, outlty = 1, outpch = NA)
|
|
645
|
+
> boxplot(z, pars = splus)
|
|
646
|
+
> ## Recycled and "sweeping" parameters
|
|
647
|
+
> op <- par(mfrow = c(1,2))
|
|
648
|
+
> boxplot(z, border = 1:5, lty = 3, medlty = 1, medlwd = 2.5)
|
|
649
|
+
> boxplot(z, boxfill = 1:3, pch = 1:5, lwd = 1.5, medcol = "white")
|
|
650
|
+
> par(op)
|
|
651
|
+
> ## too many possibilities
|
|
652
|
+
> boxplot(z, boxfill = "light gray", outpch = 21:25, outlty = 2,
|
|
653
|
+
+ bg = "pink", lwd = 2,
|
|
654
|
+
+ medcol = "dark blue", medcex = 2, medpch = 20)
|
|
655
|
+
>
|
|
656
|
+
>
|
|
657
|
+
>
|
|
658
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
659
|
+
> cleanEx()
|
|
660
|
+
> nameEx("cdplot")
|
|
661
|
+
> ### * cdplot
|
|
662
|
+
>
|
|
663
|
+
> flush(stderr()); flush(stdout())
|
|
664
|
+
>
|
|
665
|
+
> ### Name: cdplot
|
|
666
|
+
> ### Title: Conditional Density Plots
|
|
667
|
+
> ### Aliases: cdplot cdplot.default cdplot.formula
|
|
668
|
+
> ### Keywords: hplot
|
|
669
|
+
>
|
|
670
|
+
> ### ** Examples
|
|
671
|
+
>
|
|
672
|
+
> ## NASA space shuttle o-ring failures
|
|
673
|
+
> fail <- factor(c(2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1,
|
|
674
|
+
+ 1, 2, 1, 1, 1, 1, 1),
|
|
675
|
+
+ levels = 1:2, labels = c("no", "yes"))
|
|
676
|
+
> temperature <- c(53, 57, 58, 63, 66, 67, 67, 67, 68, 69, 70, 70,
|
|
677
|
+
+ 70, 70, 72, 73, 75, 75, 76, 76, 78, 79, 81)
|
|
678
|
+
>
|
|
679
|
+
> ## CD plot
|
|
680
|
+
> cdplot(fail ~ temperature)
|
|
681
|
+
> cdplot(fail ~ temperature, bw = 2)
|
|
682
|
+
> cdplot(fail ~ temperature, bw = "SJ")
|
|
683
|
+
>
|
|
684
|
+
> ## compare with spinogram
|
|
685
|
+
> (spineplot(fail ~ temperature, breaks = 3))
|
|
686
|
+
fail
|
|
687
|
+
temperature no yes
|
|
688
|
+
[50,60] 0 3
|
|
689
|
+
(60,70] 8 3
|
|
690
|
+
(70,80] 7 1
|
|
691
|
+
(80,90] 1 0
|
|
692
|
+
>
|
|
693
|
+
> ## highlighting for failures
|
|
694
|
+
> cdplot(fail ~ temperature, ylevels = 2:1)
|
|
695
|
+
>
|
|
696
|
+
> ## scatter plot with conditional density
|
|
697
|
+
> cdens <- cdplot(fail ~ temperature, plot = FALSE)
|
|
698
|
+
> plot(I(as.numeric(fail) - 1) ~ jitter(temperature, factor = 2),
|
|
699
|
+
+ xlab = "Temperature", ylab = "Conditional failure probability")
|
|
700
|
+
> lines(53:81, 1 - cdens[[1]](53:81), col = 2)
|
|
701
|
+
>
|
|
702
|
+
>
|
|
703
|
+
>
|
|
704
|
+
> cleanEx()
|
|
705
|
+
> nameEx("clip")
|
|
706
|
+
> ### * clip
|
|
707
|
+
>
|
|
708
|
+
> flush(stderr()); flush(stdout())
|
|
709
|
+
>
|
|
710
|
+
> ### Name: clip
|
|
711
|
+
> ### Title: Set Clipping Region
|
|
712
|
+
> ### Aliases: clip
|
|
713
|
+
> ### Keywords: dplot
|
|
714
|
+
>
|
|
715
|
+
> ### ** Examples
|
|
716
|
+
>
|
|
717
|
+
> x <- rnorm(1000)
|
|
718
|
+
> hist(x, xlim = c(-4,4))
|
|
719
|
+
> usr <- par("usr")
|
|
720
|
+
> clip(usr[1], -2, usr[3], usr[4])
|
|
721
|
+
> hist(x, col = 'red', add = TRUE)
|
|
722
|
+
> clip(2, usr[2], usr[3], usr[4])
|
|
723
|
+
> hist(x, col = 'blue', add = TRUE)
|
|
724
|
+
> do.call("clip", as.list(usr)) # reset to plot region
|
|
725
|
+
>
|
|
726
|
+
>
|
|
727
|
+
>
|
|
728
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
729
|
+
> cleanEx()
|
|
730
|
+
> nameEx("contour")
|
|
731
|
+
> ### * contour
|
|
732
|
+
>
|
|
733
|
+
> flush(stderr()); flush(stdout())
|
|
734
|
+
>
|
|
735
|
+
> ### Name: contour
|
|
736
|
+
> ### Title: Display Contours
|
|
737
|
+
> ### Aliases: contour contour.default
|
|
738
|
+
> ### Keywords: hplot aplot
|
|
739
|
+
>
|
|
740
|
+
> ### ** Examples
|
|
741
|
+
>
|
|
742
|
+
> require(grDevices) # for colours
|
|
743
|
+
> x <- -6:16
|
|
744
|
+
> op <- par(mfrow = c(2, 2))
|
|
745
|
+
> contour(outer(x, x), method = "edge", vfont = c("sans serif", "plain"))
|
|
746
|
+
> z <- outer(x, sqrt(abs(x)), FUN = `/`)
|
|
747
|
+
> image(x, x, z)
|
|
748
|
+
> contour(x, x, z, col = "pink", add = TRUE, method = "edge",
|
|
749
|
+
+ vfont = c("sans serif", "plain"))
|
|
750
|
+
> contour(x, x, z, ylim = c(1, 6), method = "simple", labcex = 1,
|
|
751
|
+
+ xlab = quote(x[1]), ylab = quote(x[2]))
|
|
752
|
+
> contour(x, x, z, ylim = c(-6, 6), nlevels = 20, lty = 2, method = "simple",
|
|
753
|
+
+ main = "20 levels; \"simple\" labelling method")
|
|
754
|
+
> par(op)
|
|
755
|
+
>
|
|
756
|
+
> ## Passing multiple colours / lty / lwd :
|
|
757
|
+
> op <- par(mfrow = c(1, 2))
|
|
758
|
+
> z <- outer(-9:25, -9:25)
|
|
759
|
+
> ## Using default levels <- pretty(range(z, finite = TRUE), 10),
|
|
760
|
+
> ## the first and last of which typically are *not* drawn:
|
|
761
|
+
> (levs <- pretty(z, n=10)) # -300 -200 ... 600 700
|
|
762
|
+
[1] -300 -200 -100 0 100 200 300 400 500 600 700
|
|
763
|
+
> contour(z, col = 1:4)
|
|
764
|
+
> ## Set levels explicitly; show that 'lwd' and 'lty' are recycled as well:
|
|
765
|
+
> contour(z, levels=levs[-c(1,length(levs))], col = 1:5, lwd = 1:3 *1.5, lty = 1:3)
|
|
766
|
+
> par(op)
|
|
767
|
+
>
|
|
768
|
+
> ## Persian Rug Art:
|
|
769
|
+
> x <- y <- seq(-4*pi, 4*pi, length.out = 27)
|
|
770
|
+
> r <- sqrt(outer(x^2, y^2, `+`))
|
|
771
|
+
> opar <- par(mfrow = c(2, 2), mar = rep(0, 4))
|
|
772
|
+
> for(f in pi^(0:3))
|
|
773
|
+
+ contour(cos(r^2)*exp(-r/f),
|
|
774
|
+
+ drawlabels = FALSE, axes = FALSE, frame.plot = TRUE)
|
|
775
|
+
>
|
|
776
|
+
> rx <- range(x <- 10*1:nrow(volcano))
|
|
777
|
+
> ry <- range(y <- 10*1:ncol(volcano))
|
|
778
|
+
> ry <- ry + c(-1, 1) * (diff(rx) - diff(ry))/2
|
|
779
|
+
> tcol <- terrain.colors(12)
|
|
780
|
+
> par(opar); opar <- par(pty = "s", bg = "lightcyan")
|
|
781
|
+
> plot(x = 0, y = 0, type = "n", xlim = rx, ylim = ry, xlab = "", ylab = "")
|
|
782
|
+
> u <- par("usr")
|
|
783
|
+
> rect(u[1], u[3], u[2], u[4], col = tcol[8], border = "red")
|
|
784
|
+
> contour(x, y, volcano, col = tcol[2], lty = "solid", add = TRUE,
|
|
785
|
+
+ vfont = c("sans serif", "plain"))
|
|
786
|
+
> title("A Topographic Map of Maunga Whau", font = 4)
|
|
787
|
+
> abline(h = 200*0:4, v = 200*0:4, col = "lightgray", lty = 2, lwd = 0.1)
|
|
788
|
+
>
|
|
789
|
+
> ## contourLines produces the same contour lines as contour
|
|
790
|
+
> plot(x = 0, y = 0, type = "n", xlim = rx, ylim = ry, xlab = "", ylab = "")
|
|
791
|
+
> u <- par("usr")
|
|
792
|
+
> rect(u[1], u[3], u[2], u[4], col = tcol[8], border = "red")
|
|
793
|
+
> contour(x, y, volcano, col = tcol[1], lty = "solid", add = TRUE,
|
|
794
|
+
+ vfont = c("sans serif", "plain"))
|
|
795
|
+
> line.list <- contourLines(x, y, volcano)
|
|
796
|
+
> invisible(lapply(line.list, lines, lwd=3, col=adjustcolor(2, .3)))
|
|
797
|
+
> par(opar)
|
|
798
|
+
>
|
|
799
|
+
>
|
|
800
|
+
>
|
|
801
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
802
|
+
> cleanEx()
|
|
803
|
+
> nameEx("convertXY")
|
|
804
|
+
> ### * convertXY
|
|
805
|
+
>
|
|
806
|
+
> flush(stderr()); flush(stdout())
|
|
807
|
+
>
|
|
808
|
+
> ### Name: convertXY
|
|
809
|
+
> ### Title: Convert between Graphics Coordinate Systems
|
|
810
|
+
> ### Aliases: grconvertX grconvertY
|
|
811
|
+
> ### Keywords: dplot
|
|
812
|
+
>
|
|
813
|
+
> ### ** Examples
|
|
814
|
+
>
|
|
815
|
+
> op <- par(omd=c(0.1, 0.9, 0.1, 0.9), mfrow = c(1, 2))
|
|
816
|
+
> plot(1:4)
|
|
817
|
+
> for(tp in c("in", "dev", "ndc", "nfc", "npc", "nic", "lines", "chars"))
|
|
818
|
+
+ print(grconvertX(c(1.0, 4.0), "user", tp))
|
|
819
|
+
[1] 1.577778 3.022222
|
|
820
|
+
[1] 113.6 217.6
|
|
821
|
+
[1] 0.2253968 0.4317460
|
|
822
|
+
[1] 0.3134921 0.8293651
|
|
823
|
+
[1] 0.03703704 0.96296296
|
|
824
|
+
[1] 0.1567460 0.4146825
|
|
825
|
+
[1] 7.888889 15.111111
|
|
826
|
+
[1] 7.888889 15.111111
|
|
827
|
+
> par(op)
|
|
828
|
+
>
|
|
829
|
+
>
|
|
830
|
+
>
|
|
831
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
832
|
+
> cleanEx()
|
|
833
|
+
> nameEx("coplot")
|
|
834
|
+
> ### * coplot
|
|
835
|
+
>
|
|
836
|
+
> flush(stderr()); flush(stdout())
|
|
837
|
+
>
|
|
838
|
+
> ### Name: coplot
|
|
839
|
+
> ### Title: Conditioning Plots
|
|
840
|
+
> ### Aliases: coplot co.intervals
|
|
841
|
+
> ### Keywords: hplot aplot
|
|
842
|
+
>
|
|
843
|
+
> ### ** Examples
|
|
844
|
+
>
|
|
845
|
+
> ## Tonga Trench Earthquakes
|
|
846
|
+
> coplot(lat ~ long | depth, data = quakes)
|
|
847
|
+
> given.depth <- co.intervals(quakes$depth, number = 4, overlap = .1)
|
|
848
|
+
> coplot(lat ~ long | depth, data = quakes, given.values = given.depth, rows = 1)
|
|
849
|
+
>
|
|
850
|
+
> ## Conditioning on 2 variables:
|
|
851
|
+
> ll.dm <- lat ~ long | depth * mag
|
|
852
|
+
> coplot(ll.dm, data = quakes)
|
|
853
|
+
> coplot(ll.dm, data = quakes, number = c(4, 7), show.given = c(TRUE, FALSE))
|
|
854
|
+
> coplot(ll.dm, data = quakes, number = c(3, 7),
|
|
855
|
+
+ overlap = c(-.5, .1)) # negative overlap DROPS values
|
|
856
|
+
>
|
|
857
|
+
> ## given two factors
|
|
858
|
+
> Index <- seq_len(nrow(warpbreaks)) # to get nicer default labels
|
|
859
|
+
> coplot(breaks ~ Index | wool * tension, data = warpbreaks,
|
|
860
|
+
+ show.given = 0:1)
|
|
861
|
+
> coplot(breaks ~ Index | wool * tension, data = warpbreaks,
|
|
862
|
+
+ col = "red", bg = "pink", pch = 21,
|
|
863
|
+
+ bar.bg = c(fac = "light blue"))
|
|
864
|
+
>
|
|
865
|
+
> ## Example with empty panels:
|
|
866
|
+
> with(data.frame(state.x77), {
|
|
867
|
+
+ coplot(Life.Exp ~ Income | Illiteracy * state.region, number = 3,
|
|
868
|
+
+ panel = function(x, y, ...) panel.smooth(x, y, span = .8, ...))
|
|
869
|
+
+ ## y ~ factor -- not really sensible, but 'show off':
|
|
870
|
+
+ coplot(Life.Exp ~ state.region | Income * state.division,
|
|
871
|
+
+ panel = panel.smooth)
|
|
872
|
+
+ })
|
|
873
|
+
>
|
|
874
|
+
>
|
|
875
|
+
>
|
|
876
|
+
> cleanEx()
|
|
877
|
+
> nameEx("curve")
|
|
878
|
+
> ### * curve
|
|
879
|
+
>
|
|
880
|
+
> flush(stderr()); flush(stdout())
|
|
881
|
+
>
|
|
882
|
+
> ### Name: curve
|
|
883
|
+
> ### Title: Draw Function Plots
|
|
884
|
+
> ### Aliases: curve plot.function
|
|
885
|
+
> ### Keywords: hplot
|
|
886
|
+
>
|
|
887
|
+
> ### ** Examples
|
|
888
|
+
>
|
|
889
|
+
> plot(qnorm) # default range c(0, 1) is appropriate here,
|
|
890
|
+
> # but end values are -/+Inf and so are omitted.
|
|
891
|
+
> plot(qlogis, main = "The Inverse Logit : qlogis()")
|
|
892
|
+
> abline(h = 0, v = 0:2/2, lty = 3, col = "gray")
|
|
893
|
+
>
|
|
894
|
+
> curve(sin, -2*pi, 2*pi, xname = "t")
|
|
895
|
+
> curve(tan, xname = "t", add = NA,
|
|
896
|
+
+ main = "curve(tan) --> same x-scale as previous plot")
|
|
897
|
+
>
|
|
898
|
+
> op <- par(mfrow = c(2, 2))
|
|
899
|
+
> curve(x^3 - 3*x, -2, 2)
|
|
900
|
+
> curve(x^2 - 2, add = TRUE, col = "violet")
|
|
901
|
+
>
|
|
902
|
+
> ## simple and advanced versions, quite similar:
|
|
903
|
+
> plot(cos, -pi, 3*pi)
|
|
904
|
+
> curve(cos, xlim = c(-pi, 3*pi), n = 1001, col = "blue", add = TRUE)
|
|
905
|
+
>
|
|
906
|
+
> chippy <- function(x) sin(cos(x)*exp(-x/2))
|
|
907
|
+
> curve(chippy, -8, 7, n = 2001)
|
|
908
|
+
> plot (chippy, -8, -5)
|
|
909
|
+
>
|
|
910
|
+
> for(ll in c("", "x", "y", "xy"))
|
|
911
|
+
+ curve(log(1+x), 1, 100, log = ll, sub = paste0("log = '", ll, "'"))
|
|
912
|
+
> par(op)
|
|
913
|
+
>
|
|
914
|
+
>
|
|
915
|
+
>
|
|
916
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
917
|
+
> cleanEx()
|
|
918
|
+
> nameEx("dotchart")
|
|
919
|
+
> ### * dotchart
|
|
920
|
+
>
|
|
921
|
+
> flush(stderr()); flush(stdout())
|
|
922
|
+
>
|
|
923
|
+
> ### Name: dotchart
|
|
924
|
+
> ### Title: Cleveland's Dot Plots
|
|
925
|
+
> ### Aliases: dotchart
|
|
926
|
+
> ### Keywords: hplot
|
|
927
|
+
>
|
|
928
|
+
> ### ** Examples
|
|
929
|
+
>
|
|
930
|
+
> dotchart(VADeaths, main = "Death Rates in Virginia - 1940")
|
|
931
|
+
>
|
|
932
|
+
> op <- par(xaxs = "i") # 0 -- 100%
|
|
933
|
+
> dotchart(t(VADeaths), xlim = c(0,100), bg = "skyblue",
|
|
934
|
+
+ main = "Death Rates in Virginia - 1940", xlab = "rate [ % ]",
|
|
935
|
+
+ ylab = "Grouping: Age x Urbanity . Gender")
|
|
936
|
+
> par(op)
|
|
937
|
+
>
|
|
938
|
+
>
|
|
939
|
+
>
|
|
940
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
941
|
+
> cleanEx()
|
|
942
|
+
> nameEx("filled.contour")
|
|
943
|
+
> ### * filled.contour
|
|
944
|
+
>
|
|
945
|
+
> flush(stderr()); flush(stdout())
|
|
946
|
+
>
|
|
947
|
+
> ### Name: filled.contour
|
|
948
|
+
> ### Title: Level (Contour) Plots
|
|
949
|
+
> ### Aliases: filled.contour .filled.contour
|
|
950
|
+
> ### Keywords: hplot aplot
|
|
951
|
+
>
|
|
952
|
+
> ### ** Examples
|
|
953
|
+
>
|
|
954
|
+
> require("grDevices") # for colours
|
|
955
|
+
> filled.contour(volcano, asp = 1) # simple
|
|
956
|
+
>
|
|
957
|
+
> x <- 10*1:nrow(volcano)
|
|
958
|
+
> y <- 10*1:ncol(volcano)
|
|
959
|
+
> filled.contour(x, y, volcano,
|
|
960
|
+
+ color.palette = function(n) hcl.colors(n, "terrain"),
|
|
961
|
+
+ plot.title = title(main = "The Topography of Maunga Whau",
|
|
962
|
+
+ xlab = "Meters North", ylab = "Meters West"),
|
|
963
|
+
+ plot.axes = { axis(1, seq(100, 800, by = 100))
|
|
964
|
+
+ axis(2, seq(100, 600, by = 100)) },
|
|
965
|
+
+ key.title = title(main = "Height\n(meters)"),
|
|
966
|
+
+ key.axes = axis(4, seq(90, 190, by = 10))) # maybe also asp = 1
|
|
967
|
+
> mtext(paste("filled.contour(.) from", R.version.string),
|
|
968
|
+
+ side = 1, line = 4, adj = 1, cex = .66)
|
|
969
|
+
>
|
|
970
|
+
> # Annotating a filled contour plot
|
|
971
|
+
> a <- expand.grid(1:20, 1:20)
|
|
972
|
+
> b <- matrix(a[,1] + a[,2], 20)
|
|
973
|
+
> filled.contour(x = 1:20, y = 1:20, z = b,
|
|
974
|
+
+ plot.axes = { axis(1); axis(2); points(10, 10) })
|
|
975
|
+
>
|
|
976
|
+
> ## Persian Rug Art:
|
|
977
|
+
> x <- y <- seq(-4*pi, 4*pi, length.out = 27)
|
|
978
|
+
> r <- sqrt(outer(x^2, y^2, `+`))
|
|
979
|
+
> filled.contour(cos(r^2)*exp(-r/(2*pi)), axes = FALSE)
|
|
980
|
+
> ## rather, the key *should* be labeled:
|
|
981
|
+
> filled.contour(cos(r^2)*exp(-r/(2*pi)), frame.plot = FALSE,
|
|
982
|
+
+ plot.axes = {})
|
|
983
|
+
>
|
|
984
|
+
>
|
|
985
|
+
>
|
|
986
|
+
> cleanEx()
|
|
987
|
+
> nameEx("fourfoldplot")
|
|
988
|
+
> ### * fourfoldplot
|
|
989
|
+
>
|
|
990
|
+
> flush(stderr()); flush(stdout())
|
|
991
|
+
>
|
|
992
|
+
> ### Name: fourfoldplot
|
|
993
|
+
> ### Title: Fourfold Plots
|
|
994
|
+
> ### Aliases: fourfoldplot
|
|
995
|
+
> ### Keywords: hplot
|
|
996
|
+
>
|
|
997
|
+
> ### ** Examples
|
|
998
|
+
>
|
|
999
|
+
> ## Use the Berkeley admission data as in Friendly (1995).
|
|
1000
|
+
> x <- aperm(UCBAdmissions, c(2, 1, 3))
|
|
1001
|
+
> dimnames(x)[[2]] <- c("Yes", "No")
|
|
1002
|
+
> names(dimnames(x)) <- c("Sex", "Admit?", "Department")
|
|
1003
|
+
> stats::ftable(x)
|
|
1004
|
+
Department A B C D E F
|
|
1005
|
+
Sex Admit?
|
|
1006
|
+
Male Yes 512 353 120 138 53 22
|
|
1007
|
+
No 313 207 205 279 138 351
|
|
1008
|
+
Female Yes 89 17 202 131 94 24
|
|
1009
|
+
No 19 8 391 244 299 317
|
|
1010
|
+
>
|
|
1011
|
+
> ## Fourfold display of data aggregated over departments, with
|
|
1012
|
+
> ## frequencies standardized to equate the margins for admission
|
|
1013
|
+
> ## and sex.
|
|
1014
|
+
> ## Figure 1 in Friendly (1994).
|
|
1015
|
+
> fourfoldplot(marginSums(x, c(1, 2)))
|
|
1016
|
+
>
|
|
1017
|
+
> ## Fourfold display of x, with frequencies in each table
|
|
1018
|
+
> ## standardized to equate the margins for admission and sex.
|
|
1019
|
+
> ## Figure 2 in Friendly (1994).
|
|
1020
|
+
> fourfoldplot(x)
|
|
1021
|
+
>
|
|
1022
|
+
> ## Fourfold display of x, with frequencies in each table
|
|
1023
|
+
> ## standardized to equate the margins for admission. but not
|
|
1024
|
+
> ## for sex.
|
|
1025
|
+
> ## Figure 3 in Friendly (1994).
|
|
1026
|
+
> fourfoldplot(x, margin = 2)
|
|
1027
|
+
>
|
|
1028
|
+
>
|
|
1029
|
+
>
|
|
1030
|
+
> cleanEx()
|
|
1031
|
+
> nameEx("grid")
|
|
1032
|
+
> ### * grid
|
|
1033
|
+
>
|
|
1034
|
+
> flush(stderr()); flush(stdout())
|
|
1035
|
+
>
|
|
1036
|
+
> ### Name: grid
|
|
1037
|
+
> ### Title: Add Grid to a Plot
|
|
1038
|
+
> ### Aliases: grid
|
|
1039
|
+
> ### Keywords: aplot
|
|
1040
|
+
>
|
|
1041
|
+
> ### ** Examples
|
|
1042
|
+
>
|
|
1043
|
+
> plot(1:3)
|
|
1044
|
+
> grid(NA, 5, lwd = 2) # grid only in y-direction
|
|
1045
|
+
>
|
|
1046
|
+
> ## maybe change the desired number of tick marks: par(lab = c(mx, my, 7))
|
|
1047
|
+
> op <- par(mfcol = 1:2)
|
|
1048
|
+
> with(iris,
|
|
1049
|
+
+ {
|
|
1050
|
+
+ plot(Sepal.Length, Sepal.Width, col = as.integer(Species),
|
|
1051
|
+
+ xlim = c(4, 8), ylim = c(2, 4.5), panel.first = grid(),
|
|
1052
|
+
+ main = "with(iris, plot(...., panel.first = grid(), ..) )")
|
|
1053
|
+
+ plot(Sepal.Length, Sepal.Width, col = as.integer(Species),
|
|
1054
|
+
+ panel.first = grid(3, lty = 1, lwd = 2),
|
|
1055
|
+
+ main = "... panel.first = grid(3, lty = 1, lwd = 2), ..")
|
|
1056
|
+
+ }
|
|
1057
|
+
+ )
|
|
1058
|
+
> par(op)
|
|
1059
|
+
>
|
|
1060
|
+
>
|
|
1061
|
+
>
|
|
1062
|
+
>
|
|
1063
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
1064
|
+
> cleanEx()
|
|
1065
|
+
> nameEx("hist.POSIXt")
|
|
1066
|
+
> ### * hist.POSIXt
|
|
1067
|
+
>
|
|
1068
|
+
> flush(stderr()); flush(stdout())
|
|
1069
|
+
>
|
|
1070
|
+
> ### Name: hist.POSIXt
|
|
1071
|
+
> ### Title: Histogram of a Date or Date-Time Object
|
|
1072
|
+
> ### Aliases: hist.POSIXt hist.Date
|
|
1073
|
+
> ### Keywords: chron dplot hplot
|
|
1074
|
+
>
|
|
1075
|
+
> ### ** Examples
|
|
1076
|
+
>
|
|
1077
|
+
> hist(.leap.seconds, "years", freq = TRUE)
|
|
1078
|
+
> brks <- seq(ISOdate(1970, 1, 1), ISOdate(2030, 1, 1), "5 years")
|
|
1079
|
+
> hist(.leap.seconds, brks)
|
|
1080
|
+
> rug(.leap.seconds, lwd=2)
|
|
1081
|
+
> ## show that 'include.lowest' "works"
|
|
1082
|
+
> stopifnot(identical(c(2L, rep(1L,11)),
|
|
1083
|
+
+ hist(brks, brks, plot=FALSE, include.lowest=TRUE )$counts))
|
|
1084
|
+
> tools::assertError(verbose=TRUE, ##--> 'breaks' do not span range of 'x'
|
|
1085
|
+
+ hist(brks, brks, plot=FALSE, include.lowest=FALSE))
|
|
1086
|
+
Asserted error: some 'x' not counted; maybe 'breaks' do not span range of 'x'
|
|
1087
|
+
> ## The default fuzz in hist.default() "kills" this, with a "wrong" message:
|
|
1088
|
+
> try ( hist(brks[-13] + 1, brks, include.lowest = FALSE) )
|
|
1089
|
+
Error in hist.default(unclass(x), unclass(breaks), plot = FALSE, warn.unused = FALSE, :
|
|
1090
|
+
some 'x' not counted; maybe 'breaks' do not span range of 'x'
|
|
1091
|
+
> ## and decreasing 'fuzz' solves the issue:
|
|
1092
|
+
> hb <- hist(brks[-13] + 1, brks, include.lowest = FALSE, fuzz = 1e-10)
|
|
1093
|
+
> stopifnot(hb$counts == 1)
|
|
1094
|
+
>
|
|
1095
|
+
> ## 100 random dates in a 10-week period
|
|
1096
|
+
> random.dates <- as.Date("2001/1/1") + 70*stats::runif(100)
|
|
1097
|
+
> hist(random.dates, "weeks", format = "%d %b")
|
|
1098
|
+
>
|
|
1099
|
+
>
|
|
1100
|
+
>
|
|
1101
|
+
> cleanEx()
|
|
1102
|
+
> nameEx("hist")
|
|
1103
|
+
> ### * hist
|
|
1104
|
+
>
|
|
1105
|
+
> flush(stderr()); flush(stdout())
|
|
1106
|
+
>
|
|
1107
|
+
> ### Name: hist
|
|
1108
|
+
> ### Title: Histograms
|
|
1109
|
+
> ### Aliases: hist hist.default
|
|
1110
|
+
> ### Keywords: dplot hplot distribution
|
|
1111
|
+
>
|
|
1112
|
+
> ### ** Examples
|
|
1113
|
+
>
|
|
1114
|
+
> op <- par(mfrow = c(2, 2))
|
|
1115
|
+
> hist(islands)
|
|
1116
|
+
> utils::str(hist(islands, col = "gray", labels = TRUE))
|
|
1117
|
+
List of 6
|
|
1118
|
+
$ breaks : num [1:10] 0 2000 4000 6000 8000 10000 12000 14000 16000 18000
|
|
1119
|
+
$ counts : int [1:9] 41 2 1 1 1 1 0 0 1
|
|
1120
|
+
$ density : num [1:9] 4.27e-04 2.08e-05 1.04e-05 1.04e-05 1.04e-05 ...
|
|
1121
|
+
$ mids : num [1:9] 1000 3000 5000 7000 9000 11000 13000 15000 17000
|
|
1122
|
+
$ xname : chr "islands"
|
|
1123
|
+
$ equidist: logi TRUE
|
|
1124
|
+
- attr(*, "class")= chr "histogram"
|
|
1125
|
+
>
|
|
1126
|
+
> hist(sqrt(islands), breaks = 12, col = "lightblue", border = "pink")
|
|
1127
|
+
> ##-- For non-equidistant breaks, counts should NOT be graphed unscaled:
|
|
1128
|
+
> r <- hist(sqrt(islands), breaks = c(4*0:5, 10*3:5, 70, 100, 140),
|
|
1129
|
+
+ col = "blue1")
|
|
1130
|
+
> text(r$mids, r$density, r$counts, adj = c(.5, -.5), col = "blue3")
|
|
1131
|
+
> sapply(r[2:3], sum)
|
|
1132
|
+
counts density
|
|
1133
|
+
48.000000 0.215625
|
|
1134
|
+
> sum(r$density * diff(r$breaks)) # == 1
|
|
1135
|
+
[1] 1
|
|
1136
|
+
> lines(r, lty = 3, border = "purple") # -> lines.histogram(*)
|
|
1137
|
+
> par(op)
|
|
1138
|
+
>
|
|
1139
|
+
> require(utils) # for str
|
|
1140
|
+
> str(hist(islands, breaks = 12, plot = FALSE)) #-> 10 (~= 12) breaks
|
|
1141
|
+
List of 6
|
|
1142
|
+
$ breaks : num [1:10] 0 2000 4000 6000 8000 10000 12000 14000 16000 18000
|
|
1143
|
+
$ counts : int [1:9] 41 2 1 1 1 1 0 0 1
|
|
1144
|
+
$ density : num [1:9] 4.27e-04 2.08e-05 1.04e-05 1.04e-05 1.04e-05 ...
|
|
1145
|
+
$ mids : num [1:9] 1000 3000 5000 7000 9000 11000 13000 15000 17000
|
|
1146
|
+
$ xname : chr "islands"
|
|
1147
|
+
$ equidist: logi TRUE
|
|
1148
|
+
- attr(*, "class")= chr "histogram"
|
|
1149
|
+
> str(hist(islands, breaks = c(12,20,36,80,200,1000,17000), plot = FALSE))
|
|
1150
|
+
List of 6
|
|
1151
|
+
$ breaks : num [1:7] 12 20 36 80 200 1000 17000
|
|
1152
|
+
$ counts : int [1:6] 12 11 8 6 4 7
|
|
1153
|
+
$ density : num [1:6] 0.03125 0.014323 0.003788 0.001042 0.000104 ...
|
|
1154
|
+
$ mids : num [1:6] 16 28 58 140 600 9000
|
|
1155
|
+
$ xname : chr "islands"
|
|
1156
|
+
$ equidist: logi FALSE
|
|
1157
|
+
- attr(*, "class")= chr "histogram"
|
|
1158
|
+
>
|
|
1159
|
+
> hist(islands, breaks = c(12,20,36,80,200,1000,17000), freq = TRUE,
|
|
1160
|
+
+ main = "WRONG histogram") # and warning
|
|
1161
|
+
Warning in plot.histogram(r, freq = freq1, col = col, border = border, angle = angle, :
|
|
1162
|
+
the AREAS in the plot are wrong -- rather use 'freq = FALSE'
|
|
1163
|
+
> ## R >= 4.2.0: no "*.5" labels on y-axis:
|
|
1164
|
+
> hist(c(2,3,3,5,5,6,6,6,7))
|
|
1165
|
+
>
|
|
1166
|
+
> require(stats)
|
|
1167
|
+
> set.seed(14)
|
|
1168
|
+
> x <- rchisq(100, df = 4)
|
|
1169
|
+
>
|
|
1170
|
+
> ## Histogram with custom x-axis:
|
|
1171
|
+
> hist(x, xaxt = "n")
|
|
1172
|
+
> axis(1, at = 0:17)
|
|
1173
|
+
>
|
|
1174
|
+
> ## Don't show:
|
|
1175
|
+
> op <- par(mfrow = 2:1, mgp = c(1.5, 0.6, 0), mar = .1 + c(3,3:1))
|
|
1176
|
+
> ## End(Don't show)
|
|
1177
|
+
> ## Comparing data with a model distribution should be done with qqplot()!
|
|
1178
|
+
> qqplot(x, qchisq(ppoints(x), df = 4)); abline(0, 1, col = 2, lty = 2)
|
|
1179
|
+
>
|
|
1180
|
+
> ## if you really insist on using hist() ... :
|
|
1181
|
+
> hist(x, freq = FALSE, ylim = c(0, 0.2))
|
|
1182
|
+
> curve(dchisq(x, df = 4), col = 2, lty = 2, lwd = 2, add = TRUE)
|
|
1183
|
+
> ## Don't show:
|
|
1184
|
+
> par(op)
|
|
1185
|
+
> ## End(Don't show)
|
|
1186
|
+
>
|
|
1187
|
+
>
|
|
1188
|
+
>
|
|
1189
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
1190
|
+
> cleanEx()
|
|
1191
|
+
> nameEx("identify")
|
|
1192
|
+
> ### * identify
|
|
1193
|
+
>
|
|
1194
|
+
> flush(stderr()); flush(stdout())
|
|
1195
|
+
>
|
|
1196
|
+
> ### Name: identify
|
|
1197
|
+
> ### Title: Identify Points in a Scatter Plot
|
|
1198
|
+
> ### Aliases: identify identify.default
|
|
1199
|
+
> ### Keywords: iplot
|
|
1200
|
+
>
|
|
1201
|
+
> ### ** Examples
|
|
1202
|
+
>
|
|
1203
|
+
> ## A function to use identify to select points, and overplot the
|
|
1204
|
+
> ## points with another symbol as they are selected
|
|
1205
|
+
> identifyPch <- function(x, y = NULL, n = length(x), plot = FALSE, pch = 19, ...)
|
|
1206
|
+
+ {
|
|
1207
|
+
+ xy <- xy.coords(x, y); x <- xy$x; y <- xy$y
|
|
1208
|
+
+ sel <- rep(FALSE, length(x))
|
|
1209
|
+
+ while(sum(sel) < n) {
|
|
1210
|
+
+ ans <- identify(x[!sel], y[!sel], labels = which(!sel), n = 1, plot = plot, ...)
|
|
1211
|
+
+ if(!length(ans)) break
|
|
1212
|
+
+ ans <- which(!sel)[ans]
|
|
1213
|
+
+ points(x[ans], y[ans], pch = pch)
|
|
1214
|
+
+ sel[ans] <- TRUE
|
|
1215
|
+
+ }
|
|
1216
|
+
+ ## return indices of selected points
|
|
1217
|
+
+ which(sel)
|
|
1218
|
+
+ }
|
|
1219
|
+
>
|
|
1220
|
+
> if(dev.interactive()) { ## use it
|
|
1221
|
+
+ x <- rnorm(50); y <- rnorm(50)
|
|
1222
|
+
+ plot(x,y); identifyPch(x,y) # how fast to get all?
|
|
1223
|
+
+ }
|
|
1224
|
+
>
|
|
1225
|
+
>
|
|
1226
|
+
>
|
|
1227
|
+
>
|
|
1228
|
+
> cleanEx()
|
|
1229
|
+
> nameEx("image")
|
|
1230
|
+
> ### * image
|
|
1231
|
+
>
|
|
1232
|
+
> flush(stderr()); flush(stdout())
|
|
1233
|
+
>
|
|
1234
|
+
> ### Name: image
|
|
1235
|
+
> ### Title: Display a Color Image
|
|
1236
|
+
> ### Aliases: image image.default
|
|
1237
|
+
> ### Keywords: hplot aplot
|
|
1238
|
+
>
|
|
1239
|
+
> ### ** Examples
|
|
1240
|
+
>
|
|
1241
|
+
> require("grDevices") # for colours
|
|
1242
|
+
> x <- y <- seq(-4*pi, 4*pi, length.out = 27)
|
|
1243
|
+
> r <- sqrt(outer(x^2, y^2, `+`))
|
|
1244
|
+
> image(z = z <- cos(r^2)*exp(-r/6), col = gray.colors(33))
|
|
1245
|
+
> image(z, axes = FALSE, main = "Math can be beautiful ...",
|
|
1246
|
+
+ xlab = expression(cos(r^2) * e^{-r/6}))
|
|
1247
|
+
> contour(z, add = TRUE, drawlabels = FALSE)
|
|
1248
|
+
>
|
|
1249
|
+
> # Visualize as matrix. Need to transpose matrix and then flip it horizontally:
|
|
1250
|
+
> tf <- function(m) t(m)[, nrow(m):1]
|
|
1251
|
+
> imageM <- function(m, grid = max(dim(m)) <= 25, asp = (nrow(m)-1)/(ncol(m)-1), ...) {
|
|
1252
|
+
+ image(tf(m), asp=asp, axes = FALSE, ...)
|
|
1253
|
+
+ mAxis <- function(side, at, ...) # using 'j'
|
|
1254
|
+
+ axis(side, at=at, labels=as.character(j+1L), col="gray", col.axis=1, ...)
|
|
1255
|
+
+ n <- ncol(m); n1 <- n-1L; j <- 0L:n1; mAxis(1, at= j/n1)
|
|
1256
|
+
+ if(grid) abline(v = (0:n - .5)/n1, col="gray77", lty="dotted")
|
|
1257
|
+
+ n <- nrow(m); n1 <- n-1L; j <- 0L:n1; mAxis(2, at=1-j/n1, las=1)
|
|
1258
|
+
+ if(grid) abline(h = (0:n - .5)/n1, col="gray77", lty="dotted")
|
|
1259
|
+
+ }
|
|
1260
|
+
> (m <- outer(1:5, 1:14))
|
|
1261
|
+
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14]
|
|
1262
|
+
[1,] 1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
|
1263
|
+
[2,] 2 4 6 8 10 12 14 16 18 20 22 24 26 28
|
|
1264
|
+
[3,] 3 6 9 12 15 18 21 24 27 30 33 36 39 42
|
|
1265
|
+
[4,] 4 8 12 16 20 24 28 32 36 40 44 48 52 56
|
|
1266
|
+
[5,] 5 10 15 20 25 30 35 40 45 50 55 60 65 70
|
|
1267
|
+
> imageM(m, main = "image(<5 x 14 matrix>) with rows and columns")
|
|
1268
|
+
> imageM(volcano)
|
|
1269
|
+
>
|
|
1270
|
+
> # A prettier display of the volcano
|
|
1271
|
+
> x <- 10*(1:nrow(volcano))
|
|
1272
|
+
> y <- 10*(1:ncol(volcano))
|
|
1273
|
+
> image(x, y, volcano, col = hcl.colors(100, "terrain"), axes = FALSE)
|
|
1274
|
+
> contour(x, y, volcano, levels = seq(90, 200, by = 5),
|
|
1275
|
+
+ add = TRUE, col = "brown")
|
|
1276
|
+
> axis(1, at = seq(100, 800, by = 100))
|
|
1277
|
+
> axis(2, at = seq(100, 600, by = 100))
|
|
1278
|
+
> box()
|
|
1279
|
+
> title(main = "Maunga Whau Volcano", font.main = 4)
|
|
1280
|
+
>
|
|
1281
|
+
>
|
|
1282
|
+
>
|
|
1283
|
+
> cleanEx()
|
|
1284
|
+
> nameEx("layout")
|
|
1285
|
+
> ### * layout
|
|
1286
|
+
>
|
|
1287
|
+
> flush(stderr()); flush(stdout())
|
|
1288
|
+
>
|
|
1289
|
+
> ### Name: layout
|
|
1290
|
+
> ### Title: Specifying Complex Plot Arrangements
|
|
1291
|
+
> ### Aliases: layout layout.show lcm
|
|
1292
|
+
> ### Keywords: iplot dplot environment
|
|
1293
|
+
>
|
|
1294
|
+
> ### ** Examples
|
|
1295
|
+
>
|
|
1296
|
+
> def.par <- par(no.readonly = TRUE) # save default, for resetting...
|
|
1297
|
+
>
|
|
1298
|
+
> ## divide the device into two rows and two columns
|
|
1299
|
+
> ## allocate figure 1 all of row 1
|
|
1300
|
+
> ## allocate figure 2 the intersection of column 2 and row 2
|
|
1301
|
+
> layout(matrix(c(1,1,0,2), 2, 2, byrow = TRUE))
|
|
1302
|
+
> ## show the regions that have been allocated to each plot
|
|
1303
|
+
> layout.show(2)
|
|
1304
|
+
>
|
|
1305
|
+
> ## divide device into two rows and two columns
|
|
1306
|
+
> ## allocate figure 1 and figure 2 as above
|
|
1307
|
+
> ## respect relations between widths and heights
|
|
1308
|
+
> nf <- layout(matrix(c(1,1,0,2), 2, 2, byrow = TRUE), respect = TRUE)
|
|
1309
|
+
> layout.show(nf)
|
|
1310
|
+
>
|
|
1311
|
+
> ## create single figure which is 5cm square
|
|
1312
|
+
> nf <- layout(matrix(1), widths = lcm(5), heights = lcm(5))
|
|
1313
|
+
> layout.show(nf)
|
|
1314
|
+
>
|
|
1315
|
+
>
|
|
1316
|
+
> ##-- Create a scatterplot with marginal histograms -----
|
|
1317
|
+
>
|
|
1318
|
+
> x <- pmin(3, pmax(-3, stats::rnorm(50)))
|
|
1319
|
+
> y <- pmin(3, pmax(-3, stats::rnorm(50)))
|
|
1320
|
+
> xhist <- hist(x, breaks = seq(-3,3,0.5), plot = FALSE)
|
|
1321
|
+
> yhist <- hist(y, breaks = seq(-3,3,0.5), plot = FALSE)
|
|
1322
|
+
> top <- max(c(xhist$counts, yhist$counts))
|
|
1323
|
+
> xrange <- c(-3, 3)
|
|
1324
|
+
> yrange <- c(-3, 3)
|
|
1325
|
+
> nf <- layout(matrix(c(2,0,1,3),2,2,byrow = TRUE), c(3,1), c(1,3), TRUE)
|
|
1326
|
+
> layout.show(nf)
|
|
1327
|
+
>
|
|
1328
|
+
> par(mar = c(3,3,1,1))
|
|
1329
|
+
> plot(x, y, xlim = xrange, ylim = yrange, xlab = "", ylab = "")
|
|
1330
|
+
> par(mar = c(0,3,1,1))
|
|
1331
|
+
> barplot(xhist$counts, axes = FALSE, ylim = c(0, top), space = 0)
|
|
1332
|
+
> par(mar = c(3,0,1,1))
|
|
1333
|
+
> barplot(yhist$counts, axes = FALSE, xlim = c(0, top), space = 0, horiz = TRUE)
|
|
1334
|
+
>
|
|
1335
|
+
> par(def.par) #- reset to default
|
|
1336
|
+
>
|
|
1337
|
+
>
|
|
1338
|
+
>
|
|
1339
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
1340
|
+
> cleanEx()
|
|
1341
|
+
> nameEx("legend")
|
|
1342
|
+
> ### * legend
|
|
1343
|
+
>
|
|
1344
|
+
> flush(stderr()); flush(stdout())
|
|
1345
|
+
>
|
|
1346
|
+
> ### Name: legend
|
|
1347
|
+
> ### Title: Add Legends to Plots
|
|
1348
|
+
> ### Aliases: legend
|
|
1349
|
+
> ### Keywords: aplot
|
|
1350
|
+
>
|
|
1351
|
+
> ### ** Examples
|
|
1352
|
+
>
|
|
1353
|
+
> ## Run the example in '?matplot' or the following:
|
|
1354
|
+
> leg.txt <- c("Setosa Petals", "Setosa Sepals",
|
|
1355
|
+
+ "Versicolor Petals", "Versicolor Sepals")
|
|
1356
|
+
> y.leg <- c(4.5, 3, 2.1, 1.4, .7)
|
|
1357
|
+
> cexv <- c(1.2, 1, 4/5, 2/3, 1/2)
|
|
1358
|
+
> matplot(c(1, 8), c(0, 4.5), type = "n", xlab = "Length", ylab = "Width",
|
|
1359
|
+
+ main = "Petal and Sepal Dimensions in Iris Blossoms")
|
|
1360
|
+
> for (i in seq(cexv)) {
|
|
1361
|
+
+ text (1, y.leg[i] - 0.1, paste("cex=", formatC(cexv[i])), cex = 0.8, adj = 0)
|
|
1362
|
+
+ legend(3, y.leg[i], leg.txt, pch = "sSvV", col = c(1, 3), cex = cexv[i])
|
|
1363
|
+
+ }
|
|
1364
|
+
> ## cex *vector* [in R <= 3.5.1 has 'if(xc < 0)' w/ length(xc) == 2]
|
|
1365
|
+
> legend("right", leg.txt, pch = "sSvV", col = c(1, 3),
|
|
1366
|
+
+ cex = 1+(-1:2)/8, trace = TRUE)# trace: show computed lengths & coords
|
|
1367
|
+
xchar= 0.1723,0.1969,0.2215,0.2461 ; (yextra, ychar)= 0,0,0,0, 0.2355,0.2355,0.2355,0.2355
|
|
1368
|
+
rect2(5.559,2.839, w=2.721, h=1.177, ...)
|
|
1369
|
+
points2( 5.732 5.756 5.781 5.805 , 2.603 2.368 2.132 1.897 , pch= s S v V , ...)
|
|
1370
|
+
>
|
|
1371
|
+
> ## 'merge = TRUE' for merging lines & points:
|
|
1372
|
+
> x <- seq(-pi, pi, length.out = 65)
|
|
1373
|
+
> for(reverse in c(FALSE, TRUE)) { ## normal *and* reverse axes:
|
|
1374
|
+
+ F <- if(reverse) rev else identity
|
|
1375
|
+
+ plot(x, sin(x), type = "l", col = 3, lty = 2,
|
|
1376
|
+
+ xlim = F(range(x)), ylim = F(c(-1.2, 1.8)))
|
|
1377
|
+
+ points(x, cos(x), pch = 3, col = 4)
|
|
1378
|
+
+ lines(x, tan(x), type = "b", lty = 1, pch = 4, col = 6)
|
|
1379
|
+
+ title("legend('top', lty = c(2, -1, 1), pch = c(NA, 3, 4), merge = TRUE)",
|
|
1380
|
+
+ cex.main = 1.1)
|
|
1381
|
+
+ legend("top", c("sin", "cos", "tan"), col = c(3, 4, 6),
|
|
1382
|
+
+ text.col = "green4", lty = c(2, -1, 1), pch = c(NA, 3, 4),
|
|
1383
|
+
+ merge = TRUE, bg = "gray90", trace=TRUE)
|
|
1384
|
+
+ ## Don't show:
|
|
1385
|
+
+ if(!reverse && interactive()) {
|
|
1386
|
+
+ cat("waiting .."); Sys.sleep(2); cat(" done\n") }
|
|
1387
|
+
+
|
|
1388
|
+
+ ## End(Don't show)
|
|
1389
|
+
+ } # for(..)
|
|
1390
|
+
xchar= 0.1767,0.1767,0.1767 ; (yextra, ychar)= 0,0,0, 0.1256,0.1256,0.1256
|
|
1391
|
+
rect2(-0.4885,1.92, w=0.977, h=0.5023, ...)
|
|
1392
|
+
segments2( -0.4355 -0.4355 , 1.794 1.543 , dx= 0.3534 0.3534 , dy=0, ...)
|
|
1393
|
+
points2( -0.2588 -0.2588 , 1.669 1.543 , pch= 3 4 , ...)
|
|
1394
|
+
xchar= -0.1767,-0.1767,-0.1767 ; (yextra, ychar)= -0,-0,-0, -0.1256,-0.1256,-0.1256
|
|
1395
|
+
rect2(0.4885,-1.32, w=-0.977, h=-0.5023, ...)
|
|
1396
|
+
segments2( 0.4355 0.4355 , -1.194 -0.9433 , dx= -0.3534 -0.3534 , dy=0, ...)
|
|
1397
|
+
points2( 0.2588 0.2588 , -1.069 -0.9433 , pch= 3 4 , ...)
|
|
1398
|
+
>
|
|
1399
|
+
> ## right-justifying a set of labels: thanks to Uwe Ligges
|
|
1400
|
+
> x <- 1:5; y1 <- 1/x; y2 <- 2/x
|
|
1401
|
+
> plot(rep(x, 2), c(y1, y2), type = "n", xlab = "x", ylab = "y")
|
|
1402
|
+
> lines(x, y1); lines(x, y2, lty = 2)
|
|
1403
|
+
> temp <- legend("topright", legend = c(" ", " "),
|
|
1404
|
+
+ text.width = strwidth("1,000,000"),
|
|
1405
|
+
+ lty = 1:2, xjust = 1, yjust = 1, inset = 1/10,
|
|
1406
|
+
+ title = "Line Types", title.cex = 0.5, trace=TRUE)
|
|
1407
|
+
xchar= 0.1125,0.1125 ; (yextra, ychar)= 0,0, 0.07535,0.07535
|
|
1408
|
+
rect2(3.666,1.878, w=1.062, h=0.2637, ...)
|
|
1409
|
+
segments2( 3.778 3.778 , 1.765 1.689 , dx= 0.225 0.225 , dy=0, ...)
|
|
1410
|
+
> text(temp$rect$left + temp$rect$w, temp$text$y,
|
|
1411
|
+
+ c("1,000", "1,000,000"), pos = 2)
|
|
1412
|
+
>
|
|
1413
|
+
>
|
|
1414
|
+
> ##--- log scaled Examples ------------------------------
|
|
1415
|
+
> leg.txt <- c("a one", "a two")
|
|
1416
|
+
>
|
|
1417
|
+
> par(mfrow = c(2, 2))
|
|
1418
|
+
> for(ll in c("","x","y","xy")) {
|
|
1419
|
+
+ plot(2:10, log = ll, main = paste0("log = '", ll, "'"))
|
|
1420
|
+
+ abline(1, 1)
|
|
1421
|
+
+ lines(2:3, 3:4, col = 2)
|
|
1422
|
+
+ points(2, 2, col = 3)
|
|
1423
|
+
+ rect(2, 3, 3, 2, col = 4)
|
|
1424
|
+
+ text(c(3,3), 2:3, c("rect(2,3,3,2, col=4)",
|
|
1425
|
+
+ "text(c(3,3),2:3,\"c(rect(...)\")"), adj = c(0, 0.3))
|
|
1426
|
+
+ legend(list(x = 2,y = 8), legend = leg.txt, col = 2:3, pch = 1:2,
|
|
1427
|
+
+ lty = 1) #, trace = TRUE)
|
|
1428
|
+
+ } # ^^^^^^^ to force lines -> automatic merge=TRUE
|
|
1429
|
+
> par(mfrow = c(1,1))
|
|
1430
|
+
>
|
|
1431
|
+
> ##-- Math expressions: ------------------------------
|
|
1432
|
+
> x <- seq(-pi, pi, length.out = 65)
|
|
1433
|
+
> plot(x, sin(x), type = "l", col = 2, xlab = expression(phi),
|
|
1434
|
+
+ ylab = expression(f(phi)))
|
|
1435
|
+
> abline(h = -1:1, v = pi/2*(-6:6), col = "gray90")
|
|
1436
|
+
> lines(x, cos(x), col = 3, lty = 2)
|
|
1437
|
+
> ex.cs1 <- expression(plain(sin) * phi, paste("cos", phi)) # 2 ways
|
|
1438
|
+
> utils::str(legend(-3, .9, ex.cs1, lty = 1:2, plot = FALSE,
|
|
1439
|
+
+ adj = c(0, 0.6))) # adj y !
|
|
1440
|
+
List of 2
|
|
1441
|
+
$ rect:List of 4
|
|
1442
|
+
..$ w : num 1.2
|
|
1443
|
+
..$ h : num 0.251
|
|
1444
|
+
..$ left: num -3
|
|
1445
|
+
..$ top : num 0.9
|
|
1446
|
+
$ text:List of 2
|
|
1447
|
+
..$ x: num [1:2] -2.29 -2.29
|
|
1448
|
+
..$ y: num [1:2] 0.816 0.733
|
|
1449
|
+
> legend(-3, 0.9, ex.cs1, lty = 1:2, col = 2:3, adj = c(0, 0.6))
|
|
1450
|
+
>
|
|
1451
|
+
> require(stats)
|
|
1452
|
+
> x <- rexp(100, rate = .5)
|
|
1453
|
+
> hist(x, main = "Mean and Median of a Skewed Distribution")
|
|
1454
|
+
> abline(v = mean(x), col = 2, lty = 2, lwd = 2)
|
|
1455
|
+
> abline(v = median(x), col = 3, lty = 3, lwd = 2)
|
|
1456
|
+
> ex12 <- expression(bar(x) == sum(over(x[i], n), i == 1, n),
|
|
1457
|
+
+ hat(x) == median(x[i], i == 1, n))
|
|
1458
|
+
> utils::str(legend(4.1, 30, ex12, col = 2:3, lty = 2:3, lwd = 2))
|
|
1459
|
+
List of 2
|
|
1460
|
+
$ rect:List of 4
|
|
1461
|
+
..$ w : num 4.27
|
|
1462
|
+
..$ h : num 6.78
|
|
1463
|
+
..$ left: num 4.1
|
|
1464
|
+
..$ top : num 30
|
|
1465
|
+
$ text:List of 2
|
|
1466
|
+
..$ x: num [1:2] 5.22 5.22
|
|
1467
|
+
..$ y: num [1:2] 27.3 24.6
|
|
1468
|
+
>
|
|
1469
|
+
> ## 'Filled' boxes -- see also example(barplot) which may call legend(*, fill=)
|
|
1470
|
+
> barplot(VADeaths)
|
|
1471
|
+
> legend("topright", rownames(VADeaths), fill = gray.colors(nrow(VADeaths)))
|
|
1472
|
+
>
|
|
1473
|
+
> ## Using 'ncol'
|
|
1474
|
+
> x <- 0:64/64
|
|
1475
|
+
> for(R in c(identity, rev)) { # normal *and* reverse x-axis works fine:
|
|
1476
|
+
+ xl <- R(range(x)); x1 <- xl[1]
|
|
1477
|
+
+ matplot(x, outer(x, 1:7, function(x, k) sin(k * pi * x)), xlim=xl,
|
|
1478
|
+
+ type = "o", col = 1:7, ylim = c(-1, 1.5), pch = "*")
|
|
1479
|
+
+ op <- par(bg = "antiquewhite1")
|
|
1480
|
+
+ legend(x1, 1.5, paste("sin(", 1:7, "pi * x)"), col = 1:7, lty = 1:7,
|
|
1481
|
+
+ pch = "*", ncol = 4, cex = 0.8)
|
|
1482
|
+
+ legend("bottomright", paste("sin(", 1:7, "pi * x)"), col = 1:7, lty = 1:7,
|
|
1483
|
+
+ pch = "*", cex = 0.8)
|
|
1484
|
+
+ legend(x1, -.1, paste("sin(", 1:4, "pi * x)"), col = 1:4, lty = 1:4,
|
|
1485
|
+
+ ncol = 2, cex = 0.8)
|
|
1486
|
+
+ legend(x1, -.4, paste("sin(", 5:7, "pi * x)"), col = 4:6, pch = 24,
|
|
1487
|
+
+ ncol = 2, cex = 1.5, lwd = 2, pt.bg = "pink", pt.cex = 1:3)
|
|
1488
|
+
+ par(op)
|
|
1489
|
+
+ ## Don't show:
|
|
1490
|
+
+ if(interactive() && identical(R, identity)) {
|
|
1491
|
+
+ cat("waiting .."); Sys.sleep(2); cat(" done\n") }
|
|
1492
|
+
+ ## End(Don't show)
|
|
1493
|
+
+ } # for(..)
|
|
1494
|
+
>
|
|
1495
|
+
> ## point covering line :
|
|
1496
|
+
> y <- sin(3*pi*x)
|
|
1497
|
+
> plot(x, y, type = "l", col = "blue",
|
|
1498
|
+
+ main = "points with bg & legend(*, pt.bg)")
|
|
1499
|
+
> points(x, y, pch = 21, bg = "white")
|
|
1500
|
+
> legend(.4,1, "sin(c x)", pch = 21, pt.bg = "white", lty = 1, col = "blue")
|
|
1501
|
+
>
|
|
1502
|
+
> ## legends with titles at different locations
|
|
1503
|
+
> plot(x, y, type = "n")
|
|
1504
|
+
> legend("bottomright", "(x,y)", pch=1, title= "bottomright")
|
|
1505
|
+
> legend("bottom", "(x,y)", pch=1, title= "bottom")
|
|
1506
|
+
> legend("bottomleft", "(x,y)", pch=1, title= "bottomleft")
|
|
1507
|
+
> legend("left", "(x,y)", pch=1, title= "left")
|
|
1508
|
+
> legend("topleft", "(x,y)", pch=1, title= "topleft, inset = .05", inset = .05)
|
|
1509
|
+
> legend("top", "(x,y)", pch=1, title= "top")
|
|
1510
|
+
> legend("topright", "(x,y)", pch=1, title= "topright, inset = .02",inset = .02)
|
|
1511
|
+
> legend("right", "(x,y)", pch=1, title= "right")
|
|
1512
|
+
> legend("center", "(x,y)", pch=1, title= "center")
|
|
1513
|
+
>
|
|
1514
|
+
> # using text.font (and text.col):
|
|
1515
|
+
> op <- par(mfrow = c(2, 2), mar = rep(2.1, 4))
|
|
1516
|
+
> c6 <- terrain.colors(10)[1:6]
|
|
1517
|
+
> for(i in 1:4) {
|
|
1518
|
+
+ plot(1, type = "n", axes = FALSE, ann = FALSE); title(paste("text.font =",i))
|
|
1519
|
+
+ legend("top", legend = LETTERS[1:6], col = c6,
|
|
1520
|
+
+ ncol = 2, cex = 2, lwd = 3, text.font = i, text.col = c6)
|
|
1521
|
+
+ }
|
|
1522
|
+
> par(op)
|
|
1523
|
+
>
|
|
1524
|
+
> # using text.width for several columns
|
|
1525
|
+
> plot(1, type="n")
|
|
1526
|
+
> legend("topleft", c("This legend", "has", "equally sized", "columns."),
|
|
1527
|
+
+ pch = 1:4, ncol = 4)
|
|
1528
|
+
> legend("bottomleft", c("This legend", "has", "optimally sized", "columns."),
|
|
1529
|
+
+ pch = 1:4, ncol = 4, text.width = NA)
|
|
1530
|
+
> legend("right", letters[1:4], pch = 1:4, ncol = 4,
|
|
1531
|
+
+ text.width = 1:4 / 50)
|
|
1532
|
+
>
|
|
1533
|
+
>
|
|
1534
|
+
>
|
|
1535
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
1536
|
+
> cleanEx()
|
|
1537
|
+
> nameEx("lines")
|
|
1538
|
+
> ### * lines
|
|
1539
|
+
>
|
|
1540
|
+
> flush(stderr()); flush(stdout())
|
|
1541
|
+
>
|
|
1542
|
+
> ### Name: lines
|
|
1543
|
+
> ### Title: Add Connected Line Segments to a Plot
|
|
1544
|
+
> ### Aliases: lines lines.default
|
|
1545
|
+
> ### Keywords: aplot
|
|
1546
|
+
>
|
|
1547
|
+
> ### ** Examples
|
|
1548
|
+
>
|
|
1549
|
+
> # draw a smooth line through a scatter plot
|
|
1550
|
+
> plot(cars, main = "Stopping Distance versus Speed")
|
|
1551
|
+
> lines(stats::lowess(cars))
|
|
1552
|
+
>
|
|
1553
|
+
>
|
|
1554
|
+
>
|
|
1555
|
+
> cleanEx()
|
|
1556
|
+
> nameEx("matplot")
|
|
1557
|
+
> ### * matplot
|
|
1558
|
+
>
|
|
1559
|
+
> flush(stderr()); flush(stdout())
|
|
1560
|
+
>
|
|
1561
|
+
> ### Name: matplot
|
|
1562
|
+
> ### Title: Plot Columns of Matrices
|
|
1563
|
+
> ### Aliases: matplot matpoints matlines
|
|
1564
|
+
> ### Keywords: hplot aplot array
|
|
1565
|
+
>
|
|
1566
|
+
> ### ** Examples
|
|
1567
|
+
>
|
|
1568
|
+
> require(grDevices)
|
|
1569
|
+
> matplot((-4:5)^2, main = "Quadratic") # almost identical to plot(*)
|
|
1570
|
+
> sines <- outer(1:20, 1:4, function(x, y) sin(x / 20 * pi * y))
|
|
1571
|
+
> matplot(sines, pch = 1:4, type = "o", col = rainbow(ncol(sines)))
|
|
1572
|
+
> matplot(sines, type = "b", pch = 21:23, col = 2:5, bg = 2:5,
|
|
1573
|
+
+ main = "matplot(...., pch = 21:23, bg = 2:5)")
|
|
1574
|
+
>
|
|
1575
|
+
> x <- 0:50/50
|
|
1576
|
+
> matplot(x, outer(x, 1:8, function(x, k) sin(k*pi * x)),
|
|
1577
|
+
+ ylim = c(-2,2), type = "plobcsSh",
|
|
1578
|
+
+ main= "matplot(,type = \"plobcsSh\" )")
|
|
1579
|
+
> ## pch & type = vector of 1-chars :
|
|
1580
|
+
> matplot(x, outer(x, 1:4, function(x, k) sin(k*pi * x)),
|
|
1581
|
+
+ pch = letters[1:4], type = c("b","p","o"))
|
|
1582
|
+
>
|
|
1583
|
+
> lends <- c("round","butt","square")
|
|
1584
|
+
> matplot(matrix(1:12, 4), type="c", lty=1, lwd=10, lend=lends)
|
|
1585
|
+
> text(cbind(2.5, 2*c(1,3,5)-.4), lends, col= 1:3, cex = 1.5)
|
|
1586
|
+
>
|
|
1587
|
+
> table(iris$Species) # is data.frame with 'Species' factor
|
|
1588
|
+
|
|
1589
|
+
setosa versicolor virginica
|
|
1590
|
+
50 50 50
|
|
1591
|
+
> iS <- iris$Species == "setosa"
|
|
1592
|
+
> iV <- iris$Species == "versicolor"
|
|
1593
|
+
> op <- par(bg = "bisque")
|
|
1594
|
+
> matplot(c(1, 8), c(0, 4.5), type = "n", xlab = "Length", ylab = "Width",
|
|
1595
|
+
+ main = "Petal and Sepal Dimensions in Iris Blossoms")
|
|
1596
|
+
> matpoints(iris[iS,c(1,3)], iris[iS,c(2,4)], pch = "sS", col = c(2,4))
|
|
1597
|
+
> matpoints(iris[iV,c(1,3)], iris[iV,c(2,4)], pch = "vV", col = c(2,4))
|
|
1598
|
+
> legend(1, 4, c(" Setosa Petals", " Setosa Sepals",
|
|
1599
|
+
+ "Versicolor Petals", "Versicolor Sepals"),
|
|
1600
|
+
+ pch = "sSvV", col = rep(c(2,4), 2))
|
|
1601
|
+
>
|
|
1602
|
+
> nam.var <- colnames(iris)[-5]
|
|
1603
|
+
> nam.spec <- as.character(iris[1+50*0:2, "Species"])
|
|
1604
|
+
> iris.S <- array(NA, dim = c(50,4,3),
|
|
1605
|
+
+ dimnames = list(NULL, nam.var, nam.spec))
|
|
1606
|
+
> for(i in 1:3) iris.S[,,i] <- data.matrix(iris[1:50+50*(i-1), -5])
|
|
1607
|
+
>
|
|
1608
|
+
> matplot(iris.S[, "Petal.Length",], iris.S[, "Petal.Width",], pch = "SCV",
|
|
1609
|
+
+ col = rainbow(3, start = 0.8, end = 0.1),
|
|
1610
|
+
+ sub = paste(c("S", "C", "V"), dimnames(iris.S)[[3]],
|
|
1611
|
+
+ sep = "=", collapse= ", "),
|
|
1612
|
+
+ main = "Fisher's Iris Data")
|
|
1613
|
+
> par(op)
|
|
1614
|
+
>
|
|
1615
|
+
> ## 'x' a "Date" vector :
|
|
1616
|
+
> nd <- length(dv <- seq(as.Date("1959-02-21"), by = "weeks", length.out = 100))
|
|
1617
|
+
> mSC <- cbind(I=1, sin=sin(pi*(1:nd)/8), cos=cos(pi*(1:nd)/8))
|
|
1618
|
+
> matplot(dv, mSC, type = "b", main = "matplot(<Date>, y)")
|
|
1619
|
+
>
|
|
1620
|
+
> ## 'x' a "POSIXct" date-time vector :
|
|
1621
|
+
> ct <- seq(c(ISOdate(2000,3,20)), by = "15 mins", length.out = 100)
|
|
1622
|
+
> matplot(ct, mSC, type = "b", main = "matplot(<POSIXct>, y)")
|
|
1623
|
+
> ## or the same with even more axis flexibility:
|
|
1624
|
+
> matplot(ct, mSC, type = "b", main = "matplot(<POSIXct>, y)", xaxt="n")
|
|
1625
|
+
> Axis(ct, side=1, at = ct[1+4*(0:24)])
|
|
1626
|
+
>
|
|
1627
|
+
> ## Also works for data frame columns:
|
|
1628
|
+
> matplot(iris[1:50,1:4])
|
|
1629
|
+
>
|
|
1630
|
+
>
|
|
1631
|
+
>
|
|
1632
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
1633
|
+
> cleanEx()
|
|
1634
|
+
> nameEx("mosaicplot")
|
|
1635
|
+
> ### * mosaicplot
|
|
1636
|
+
>
|
|
1637
|
+
> flush(stderr()); flush(stdout())
|
|
1638
|
+
>
|
|
1639
|
+
> ### Name: mosaicplot
|
|
1640
|
+
> ### Title: Mosaic Plots
|
|
1641
|
+
> ### Aliases: mosaicplot mosaicplot.default mosaicplot.formula
|
|
1642
|
+
> ### Keywords: hplot
|
|
1643
|
+
>
|
|
1644
|
+
> ### ** Examples
|
|
1645
|
+
>
|
|
1646
|
+
> require(stats)
|
|
1647
|
+
> mosaicplot(Titanic, main = "Survival on the Titanic", color = TRUE)
|
|
1648
|
+
> ## Formula interface for tabulated data:
|
|
1649
|
+
> mosaicplot(~ Sex + Age + Survived, data = Titanic, color = TRUE)
|
|
1650
|
+
>
|
|
1651
|
+
> mosaicplot(HairEyeColor, shade = TRUE)
|
|
1652
|
+
> ## Independence model of hair and eye color and sex. Indicates that
|
|
1653
|
+
> ## there are more blue eyed blonde females than expected in the case
|
|
1654
|
+
> ## of independence and too few brown eyed blonde females.
|
|
1655
|
+
> ## The corresponding model is:
|
|
1656
|
+
> fm <- loglin(HairEyeColor, list(1, 2, 3))
|
|
1657
|
+
2 iterations: deviation 5.684342e-14
|
|
1658
|
+
> pchisq(fm$pearson, fm$df, lower.tail = FALSE)
|
|
1659
|
+
[1] 5.320872e-23
|
|
1660
|
+
>
|
|
1661
|
+
> mosaicplot(HairEyeColor, shade = TRUE, margin = list(1:2, 3))
|
|
1662
|
+
> ## Model of joint independence of sex from hair and eye color. Males
|
|
1663
|
+
> ## are underrepresented among people with brown hair and eyes, and are
|
|
1664
|
+
> ## overrepresented among people with brown hair and blue eyes.
|
|
1665
|
+
> ## The corresponding model is:
|
|
1666
|
+
> fm <- loglin(HairEyeColor, list(1:2, 3))
|
|
1667
|
+
2 iterations: deviation 5.684342e-14
|
|
1668
|
+
> pchisq(fm$pearson, fm$df, lower.tail = FALSE)
|
|
1669
|
+
[1] 0.1891745
|
|
1670
|
+
>
|
|
1671
|
+
> ## Formula interface for raw data: visualize cross-tabulation of numbers
|
|
1672
|
+
> ## of gears and carburettors in Motor Trend car data.
|
|
1673
|
+
> mosaicplot(~ gear + carb, data = mtcars, color = TRUE, las = 1)
|
|
1674
|
+
> # color recycling
|
|
1675
|
+
> mosaicplot(~ gear + carb, data = mtcars, color = 2:3, las = 1)
|
|
1676
|
+
>
|
|
1677
|
+
>
|
|
1678
|
+
>
|
|
1679
|
+
> cleanEx()
|
|
1680
|
+
> nameEx("mtext")
|
|
1681
|
+
> ### * mtext
|
|
1682
|
+
>
|
|
1683
|
+
> flush(stderr()); flush(stdout())
|
|
1684
|
+
>
|
|
1685
|
+
> ### Name: mtext
|
|
1686
|
+
> ### Title: Write Text into the Margins of a Plot
|
|
1687
|
+
> ### Aliases: mtext
|
|
1688
|
+
> ### Keywords: aplot
|
|
1689
|
+
>
|
|
1690
|
+
> ### ** Examples
|
|
1691
|
+
>
|
|
1692
|
+
> plot(1:10, (-4:5)^2, main = "Parabola Points", xlab = "xlab")
|
|
1693
|
+
> mtext("10 of them")
|
|
1694
|
+
> for(s in 1:4)
|
|
1695
|
+
+ mtext(paste("mtext(..., line= -1, {side, col, font} = ", s,
|
|
1696
|
+
+ ", cex = ", (1+s)/2, ")"), line = -1,
|
|
1697
|
+
+ side = s, col = s, font = s, cex = (1+s)/2)
|
|
1698
|
+
> mtext("mtext(..., line= -2)", line = -2)
|
|
1699
|
+
> mtext("mtext(..., line= -2, adj = 0)", line = -2, adj = 0)
|
|
1700
|
+
> ##--- log axis :
|
|
1701
|
+
> plot(1:10, exp(1:10), log = "y", main = "log =\"y\"", xlab = "xlab")
|
|
1702
|
+
> for(s in 1:4) mtext(paste("mtext(...,side=", s ,")"), side = s)
|
|
1703
|
+
>
|
|
1704
|
+
>
|
|
1705
|
+
>
|
|
1706
|
+
> cleanEx()
|
|
1707
|
+
> nameEx("pairs")
|
|
1708
|
+
> ### * pairs
|
|
1709
|
+
>
|
|
1710
|
+
> flush(stderr()); flush(stdout())
|
|
1711
|
+
>
|
|
1712
|
+
> ### Name: pairs
|
|
1713
|
+
> ### Title: Scatterplot Matrices
|
|
1714
|
+
> ### Aliases: pairs pairs.default pairs.formula
|
|
1715
|
+
> ### Keywords: hplot
|
|
1716
|
+
>
|
|
1717
|
+
> ### ** Examples
|
|
1718
|
+
>
|
|
1719
|
+
> pairs(iris[1:4], main = "Anderson's Iris Data -- 3 species",
|
|
1720
|
+
+ pch = 21, bg = c("red", "green3", "blue")[unclass(iris$Species)])
|
|
1721
|
+
>
|
|
1722
|
+
> ## formula method, "graph" layout (row 1 at bottom):
|
|
1723
|
+
> pairs(~ Fertility + Education + Catholic, data = swiss, row1attop=FALSE,
|
|
1724
|
+
+ subset = Education < 20, main = "Swiss data, Education < 20")
|
|
1725
|
+
>
|
|
1726
|
+
> pairs(USJudgeRatings, gap=1/10) # (gap: not wasting plotting area)
|
|
1727
|
+
> ## show only lower triangle (and suppress labeling for whatever reason):
|
|
1728
|
+
> pairs(USJudgeRatings, text.panel = NULL, upper.panel = NULL)
|
|
1729
|
+
>
|
|
1730
|
+
> ## put histograms on the diagonal
|
|
1731
|
+
> panel.hist <- function(x, ...)
|
|
1732
|
+
+ {
|
|
1733
|
+
+ usr <- par("usr")
|
|
1734
|
+
+ par(usr = c(usr[1:2], 0, 1.5) )
|
|
1735
|
+
+ h <- hist(x, plot = FALSE)
|
|
1736
|
+
+ breaks <- h$breaks; nB <- length(breaks)
|
|
1737
|
+
+ y <- h$counts; y <- y/max(y)
|
|
1738
|
+
+ rect(breaks[-nB], 0, breaks[-1], y, col = "cyan", ...)
|
|
1739
|
+
+ }
|
|
1740
|
+
> pairs(USJudgeRatings[1:5], panel = panel.smooth,
|
|
1741
|
+
+ cex = 1.5, pch = 24, bg = "light blue", horOdd=TRUE,
|
|
1742
|
+
+ diag.panel = panel.hist, cex.labels = 2, font.labels = 2)
|
|
1743
|
+
>
|
|
1744
|
+
> ## put (absolute) correlations on the upper panels,
|
|
1745
|
+
> ## with size proportional to the correlations.
|
|
1746
|
+
> panel.cor <- function(x, y, digits = 2, prefix = "", cex.cor, ...)
|
|
1747
|
+
+ {
|
|
1748
|
+
+ par(usr = c(0, 1, 0, 1))
|
|
1749
|
+
+ r <- abs(cor(x, y))
|
|
1750
|
+
+ txt <- format(c(r, 0.123456789), digits = digits)[1]
|
|
1751
|
+
+ txt <- paste0(prefix, txt)
|
|
1752
|
+
+ if(missing(cex.cor)) cex.cor <- 0.8/strwidth(txt)
|
|
1753
|
+
+ text(0.5, 0.5, txt, cex = cex.cor * r)
|
|
1754
|
+
+ }
|
|
1755
|
+
> pairs(USJudgeRatings, lower.panel = panel.smooth, upper.panel = panel.cor,
|
|
1756
|
+
+ gap=0, row1attop=FALSE)
|
|
1757
|
+
>
|
|
1758
|
+
> pairs(iris[-5], log = "xy") # plot all variables on log scale
|
|
1759
|
+
> pairs(iris, log = 1:4, # log the first four
|
|
1760
|
+
+ main = "Lengths and Widths in [log]", line.main=1.5, oma=c(2,2,3,2))
|
|
1761
|
+
>
|
|
1762
|
+
>
|
|
1763
|
+
>
|
|
1764
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
1765
|
+
> cleanEx()
|
|
1766
|
+
> nameEx("panel.smooth")
|
|
1767
|
+
> ### * panel.smooth
|
|
1768
|
+
>
|
|
1769
|
+
> flush(stderr()); flush(stdout())
|
|
1770
|
+
>
|
|
1771
|
+
> ### Name: panel.smooth
|
|
1772
|
+
> ### Title: Simple Panel Plot
|
|
1773
|
+
> ### Aliases: panel.smooth
|
|
1774
|
+
> ### Keywords: hplot dplot
|
|
1775
|
+
>
|
|
1776
|
+
> ### ** Examples
|
|
1777
|
+
>
|
|
1778
|
+
> pairs(swiss, panel = panel.smooth, pch = ".") # emphasize the smooths
|
|
1779
|
+
> pairs(swiss, panel = panel.smooth, lwd = 2, cex = 1.5, col = 4) # hmm...
|
|
1780
|
+
>
|
|
1781
|
+
>
|
|
1782
|
+
>
|
|
1783
|
+
> cleanEx()
|
|
1784
|
+
> nameEx("par")
|
|
1785
|
+
> ### * par
|
|
1786
|
+
>
|
|
1787
|
+
> flush(stderr()); flush(stdout())
|
|
1788
|
+
>
|
|
1789
|
+
> ### Name: par
|
|
1790
|
+
> ### Title: Set or Query Graphical Parameters
|
|
1791
|
+
> ### Aliases: par .Pars 'graphical parameter' 'graphical parameters'
|
|
1792
|
+
> ### Keywords: iplot dplot environment
|
|
1793
|
+
>
|
|
1794
|
+
> ### ** Examples
|
|
1795
|
+
>
|
|
1796
|
+
> op <- par(mfrow = c(2, 2), # 2 x 2 pictures on one plot
|
|
1797
|
+
+ pty = "s") # square plotting region,
|
|
1798
|
+
> # independent of device size
|
|
1799
|
+
>
|
|
1800
|
+
> ## At end of plotting, reset to previous settings:
|
|
1801
|
+
> par(op)
|
|
1802
|
+
>
|
|
1803
|
+
> ## Alternatively,
|
|
1804
|
+
> op <- par(no.readonly = TRUE) # the whole list of settable par's.
|
|
1805
|
+
> ## do lots of plotting and par(.) calls, then reset:
|
|
1806
|
+
> par(op)
|
|
1807
|
+
> ## Note this is not in general good practice
|
|
1808
|
+
>
|
|
1809
|
+
> par("ylog") # FALSE
|
|
1810
|
+
[1] FALSE
|
|
1811
|
+
> plot(1 : 12, log = "y")
|
|
1812
|
+
> par("ylog") # TRUE
|
|
1813
|
+
[1] TRUE
|
|
1814
|
+
>
|
|
1815
|
+
> plot(1:2, xaxs = "i") # 'inner axis' w/o extra space
|
|
1816
|
+
> par(c("usr", "xaxp"))
|
|
1817
|
+
$usr
|
|
1818
|
+
[1] 1.00 2.00 0.96 2.04
|
|
1819
|
+
|
|
1820
|
+
$xaxp
|
|
1821
|
+
[1] 1 2 5
|
|
1822
|
+
|
|
1823
|
+
>
|
|
1824
|
+
> ( nr.prof <-
|
|
1825
|
+
+ c(prof.pilots = 16, lawyers = 11, farmers = 10, salesmen = 9, physicians = 9,
|
|
1826
|
+
+ mechanics = 6, policemen = 6, managers = 6, engineers = 5, teachers = 4,
|
|
1827
|
+
+ housewives = 3, students = 3, armed.forces = 1))
|
|
1828
|
+
prof.pilots lawyers farmers salesmen physicians mechanics
|
|
1829
|
+
16 11 10 9 9 6
|
|
1830
|
+
policemen managers engineers teachers housewives students
|
|
1831
|
+
6 6 5 4 3 3
|
|
1832
|
+
armed.forces
|
|
1833
|
+
1
|
|
1834
|
+
> par(las = 3)
|
|
1835
|
+
> barplot(rbind(nr.prof)) # R 0.63.2: shows alignment problem
|
|
1836
|
+
> par(las = 0) # reset to default
|
|
1837
|
+
>
|
|
1838
|
+
> require(grDevices) # for gray
|
|
1839
|
+
> ## 'fg' use:
|
|
1840
|
+
> plot(1:12, type = "b", main = "'fg' : axes, ticks and box in gray",
|
|
1841
|
+
+ fg = gray(0.7), bty = "7" , sub = R.version.string)
|
|
1842
|
+
>
|
|
1843
|
+
> ex <- function() {
|
|
1844
|
+
+ old.par <- par(no.readonly = TRUE) # all par settings which
|
|
1845
|
+
+ # could be changed.
|
|
1846
|
+
+ on.exit(par(old.par))
|
|
1847
|
+
+ ## ...
|
|
1848
|
+
+ ## ... do lots of par() settings and plots
|
|
1849
|
+
+ ## ...
|
|
1850
|
+
+ invisible() #-- now, par(old.par) will be executed
|
|
1851
|
+
+ }
|
|
1852
|
+
> ex()
|
|
1853
|
+
>
|
|
1854
|
+
> ## Line types
|
|
1855
|
+
> showLty <- function(ltys, xoff = 0, ...) {
|
|
1856
|
+
+ stopifnot((n <- length(ltys)) >= 1)
|
|
1857
|
+
+ op <- par(mar = rep(.5,4)); on.exit(par(op))
|
|
1858
|
+
+ plot(0:1, 0:1, type = "n", axes = FALSE, ann = FALSE)
|
|
1859
|
+
+ y <- (n:1)/(n+1)
|
|
1860
|
+
+ clty <- as.character(ltys)
|
|
1861
|
+
+ mytext <- function(x, y, txt)
|
|
1862
|
+
+ text(x, y, txt, adj = c(0, -.3), cex = 0.8, ...)
|
|
1863
|
+
+ abline(h = y, lty = ltys, ...); mytext(xoff, y, clty)
|
|
1864
|
+
+ y <- y - 1/(3*(n+1))
|
|
1865
|
+
+ abline(h = y, lty = ltys, lwd = 2, ...)
|
|
1866
|
+
+ mytext(1/8+xoff, y, paste(clty," lwd = 2"))
|
|
1867
|
+
+ }
|
|
1868
|
+
> showLty(c("solid", "dashed", "dotted", "dotdash", "longdash", "twodash"))
|
|
1869
|
+
> par(new = TRUE) # the same:
|
|
1870
|
+
> showLty(c("solid", "44", "13", "1343", "73", "2262"), xoff = .2, col = 2)
|
|
1871
|
+
> showLty(c("11", "22", "33", "44", "12", "13", "14", "21", "31"))
|
|
1872
|
+
>
|
|
1873
|
+
>
|
|
1874
|
+
>
|
|
1875
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
1876
|
+
> cleanEx()
|
|
1877
|
+
> nameEx("persp")
|
|
1878
|
+
> ### * persp
|
|
1879
|
+
>
|
|
1880
|
+
> flush(stderr()); flush(stdout())
|
|
1881
|
+
>
|
|
1882
|
+
> ### Name: persp
|
|
1883
|
+
> ### Title: Perspective Plots
|
|
1884
|
+
> ### Aliases: persp persp.default
|
|
1885
|
+
> ### Keywords: hplot aplot
|
|
1886
|
+
>
|
|
1887
|
+
> ### ** Examples
|
|
1888
|
+
>
|
|
1889
|
+
> require(grDevices) # for trans3d
|
|
1890
|
+
> ## More examples in demo(persp) !!
|
|
1891
|
+
> ## -----------
|
|
1892
|
+
>
|
|
1893
|
+
> # (1) The Obligatory Mathematical surface.
|
|
1894
|
+
> # Rotated sinc function.
|
|
1895
|
+
>
|
|
1896
|
+
> x <- seq(-10, 10, length.out = 30)
|
|
1897
|
+
> y <- x
|
|
1898
|
+
> f <- function(x, y) { r <- sqrt(x^2+y^2); 10 * sin(r)/r }
|
|
1899
|
+
> z <- outer(x, y, f)
|
|
1900
|
+
> op <- par(bg = "white")
|
|
1901
|
+
> persp(x, y, z, theta = 30, phi = 30, expand = 0.5, col = "lightblue")
|
|
1902
|
+
> persp(x, y, z, theta = 30, phi = 30, expand = 0.5, col = "lightblue",
|
|
1903
|
+
+ ltheta = 120, shade = 0.75, ticktype = "detailed",
|
|
1904
|
+
+ xlab = "X", ylab = "Y", zlab = "Sinc( r )", cex.axis = 0.8
|
|
1905
|
+
+ ) -> res
|
|
1906
|
+
> round(res, 3)
|
|
1907
|
+
[,1] [,2] [,3] [,4]
|
|
1908
|
+
[1,] 0.087 -0.025 0.043 -0.043
|
|
1909
|
+
[2,] 0.050 0.043 -0.075 0.075
|
|
1910
|
+
[3,] 0.000 0.074 0.042 -0.042
|
|
1911
|
+
[4,] 0.000 -0.273 -2.890 3.890
|
|
1912
|
+
>
|
|
1913
|
+
> # (2) Add to existing persp plot - using trans3d() :
|
|
1914
|
+
>
|
|
1915
|
+
> xE <- c(-10,10); xy <- expand.grid(xE, xE)
|
|
1916
|
+
> points(trans3d(xy[,1], xy[,2], 6, pmat = res), col = 2, pch = 16)
|
|
1917
|
+
> lines (trans3d(x, y = 10, z = 6 + sin(x), pmat = res), col = 3)
|
|
1918
|
+
>
|
|
1919
|
+
> phi <- seq(0, 2*pi, length.out = 201)
|
|
1920
|
+
> r1 <- 7.725 # radius of 2nd maximum
|
|
1921
|
+
> xr <- r1 * cos(phi)
|
|
1922
|
+
> yr <- r1 * sin(phi)
|
|
1923
|
+
> lines(trans3d(xr,yr, f(xr,yr), res), col = "pink", lwd = 2)
|
|
1924
|
+
> ## (no hidden lines)
|
|
1925
|
+
>
|
|
1926
|
+
> # (3) Visualizing a simple DEM model
|
|
1927
|
+
>
|
|
1928
|
+
> z <- 2 * volcano # Exaggerate the relief
|
|
1929
|
+
> x <- 10 * (1:nrow(z)) # 10 meter spacing (S to N)
|
|
1930
|
+
> y <- 10 * (1:ncol(z)) # 10 meter spacing (E to W)
|
|
1931
|
+
> ## Don't draw the grid lines : border = NA
|
|
1932
|
+
> par(bg = "slategray")
|
|
1933
|
+
> persp(x, y, z, theta = 135, phi = 30, col = "green3", scale = FALSE,
|
|
1934
|
+
+ ltheta = -120, shade = 0.75, border = NA, box = FALSE)
|
|
1935
|
+
>
|
|
1936
|
+
> # (4) Surface colours corresponding to z-values
|
|
1937
|
+
>
|
|
1938
|
+
> par(bg = "white")
|
|
1939
|
+
> x <- seq(-1.95, 1.95, length.out = 30)
|
|
1940
|
+
> y <- seq(-1.95, 1.95, length.out = 35)
|
|
1941
|
+
> z <- outer(x, y, function(a, b) a*b^2)
|
|
1942
|
+
> nrz <- nrow(z)
|
|
1943
|
+
> ncz <- ncol(z)
|
|
1944
|
+
> # Create a function interpolating colors in the range of specified colors
|
|
1945
|
+
> jet.colors <- colorRampPalette( c("blue", "green") )
|
|
1946
|
+
> # Generate the desired number of colors from this palette
|
|
1947
|
+
> nbcol <- 100
|
|
1948
|
+
> color <- jet.colors(nbcol)
|
|
1949
|
+
> # Compute the z-value at the facet centres
|
|
1950
|
+
> zfacet <- z[-1, -1] + z[-1, -ncz] + z[-nrz, -1] + z[-nrz, -ncz]
|
|
1951
|
+
> # Recode facet z-values into color indices
|
|
1952
|
+
> facetcol <- cut(zfacet, nbcol)
|
|
1953
|
+
> persp(x, y, z, col = color[facetcol], phi = 30, theta = -30)
|
|
1954
|
+
>
|
|
1955
|
+
> par(op)
|
|
1956
|
+
>
|
|
1957
|
+
>
|
|
1958
|
+
>
|
|
1959
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
1960
|
+
> cleanEx()
|
|
1961
|
+
> nameEx("pie")
|
|
1962
|
+
> ### * pie
|
|
1963
|
+
>
|
|
1964
|
+
> flush(stderr()); flush(stdout())
|
|
1965
|
+
>
|
|
1966
|
+
> ### Name: pie
|
|
1967
|
+
> ### Title: Pie Charts
|
|
1968
|
+
> ### Aliases: pie
|
|
1969
|
+
> ### Keywords: hplot
|
|
1970
|
+
>
|
|
1971
|
+
> ### ** Examples
|
|
1972
|
+
>
|
|
1973
|
+
> require(grDevices)
|
|
1974
|
+
> pie(rep(1, 24), col = rainbow(24), radius = 0.9)
|
|
1975
|
+
>
|
|
1976
|
+
> pie.sales <- c(0.12, 0.3, 0.26, 0.16, 0.04, 0.12)
|
|
1977
|
+
> names(pie.sales) <- c("Blueberry", "Cherry",
|
|
1978
|
+
+ "Apple", "Boston Cream", "Other", "Vanilla Cream")
|
|
1979
|
+
> pie(pie.sales) # default colours
|
|
1980
|
+
> pie(pie.sales, col = c("purple", "violetred1", "green3",
|
|
1981
|
+
+ "cornsilk", "cyan", "white"))
|
|
1982
|
+
> pie(pie.sales, col = gray(seq(0.4, 1.0, length.out = 6)))
|
|
1983
|
+
> pie(pie.sales, density = 10, angle = 15 + 10 * 1:6)
|
|
1984
|
+
> pie(pie.sales, clockwise = TRUE, main = "pie(*, clockwise = TRUE)")
|
|
1985
|
+
> segments(0, 0, 0, 1, col = "red", lwd = 2)
|
|
1986
|
+
> text(0, 1, "init.angle = 90", col = "red")
|
|
1987
|
+
>
|
|
1988
|
+
> n <- 200
|
|
1989
|
+
> pie(rep(1, n), labels = "", col = rainbow(n), border = NA,
|
|
1990
|
+
+ main = "pie(*, labels=\"\", col=rainbow(n), border=NA,..")
|
|
1991
|
+
>
|
|
1992
|
+
> ## Another case showing pie() is rather fun than science:
|
|
1993
|
+
> ## (original by FinalBackwardsGlance on http://imgur.com/gallery/wWrpU4X)
|
|
1994
|
+
> pie(c(Sky = 78, "Sunny side of pyramid" = 17, "Shady side of pyramid" = 5),
|
|
1995
|
+
+ init.angle = 315, col = c("deepskyblue", "yellow", "yellow3"), border = FALSE)
|
|
1996
|
+
>
|
|
1997
|
+
>
|
|
1998
|
+
>
|
|
1999
|
+
> cleanEx()
|
|
2000
|
+
> nameEx("plot.dataframe")
|
|
2001
|
+
> ### * plot.dataframe
|
|
2002
|
+
>
|
|
2003
|
+
> flush(stderr()); flush(stdout())
|
|
2004
|
+
>
|
|
2005
|
+
> ### Name: plot.data.frame
|
|
2006
|
+
> ### Title: Plot Method for Data Frames
|
|
2007
|
+
> ### Aliases: plot.data.frame
|
|
2008
|
+
> ### Keywords: hplot methods
|
|
2009
|
+
>
|
|
2010
|
+
> ### ** Examples
|
|
2011
|
+
>
|
|
2012
|
+
> plot(OrchardSprays[1], method = "jitter")
|
|
2013
|
+
> plot(OrchardSprays[c(4,1)])
|
|
2014
|
+
> plot(OrchardSprays)
|
|
2015
|
+
>
|
|
2016
|
+
> plot(iris)
|
|
2017
|
+
> plot(iris[5:4])
|
|
2018
|
+
> plot(women)
|
|
2019
|
+
>
|
|
2020
|
+
>
|
|
2021
|
+
>
|
|
2022
|
+
> cleanEx()
|
|
2023
|
+
> nameEx("plot.default")
|
|
2024
|
+
> ### * plot.default
|
|
2025
|
+
>
|
|
2026
|
+
> flush(stderr()); flush(stdout())
|
|
2027
|
+
>
|
|
2028
|
+
> ### Name: plot.default
|
|
2029
|
+
> ### Title: The Default Scatterplot Function
|
|
2030
|
+
> ### Aliases: plot.default plot
|
|
2031
|
+
> ### Keywords: hplot
|
|
2032
|
+
>
|
|
2033
|
+
> ### ** Examples
|
|
2034
|
+
>
|
|
2035
|
+
> Speed <- cars$speed
|
|
2036
|
+
> Distance <- cars$dist
|
|
2037
|
+
> plot(Speed, Distance, panel.first = grid(8, 8),
|
|
2038
|
+
+ pch = 0, cex = 1.2, col = "blue")
|
|
2039
|
+
> plot(Speed, Distance,
|
|
2040
|
+
+ panel.first = lines(stats::lowess(Speed, Distance), lty = "dashed"),
|
|
2041
|
+
+ pch = 0, cex = 1.2, col = "blue")
|
|
2042
|
+
>
|
|
2043
|
+
> ## Show the different plot types
|
|
2044
|
+
> x <- 0:12
|
|
2045
|
+
> y <- sin(pi/5 * x)
|
|
2046
|
+
> op <- par(mfrow = c(3,3), mar = .1+ c(2,2,3,1))
|
|
2047
|
+
> for (tp in c("p","l","b", "c","o","h", "s","S","n")) {
|
|
2048
|
+
+ plot(y ~ x, type = tp, main = paste0("plot(*, type = \"", tp, "\")"))
|
|
2049
|
+
+ if(tp == "S") {
|
|
2050
|
+
+ lines(x, y, type = "s", col = "red", lty = 2)
|
|
2051
|
+
+ mtext("lines(*, type = \"s\", ...)", col = "red", cex = 0.8)
|
|
2052
|
+
+ }
|
|
2053
|
+
+ }
|
|
2054
|
+
> par(op)
|
|
2055
|
+
>
|
|
2056
|
+
> ##--- Log-Log Plot with custom axes
|
|
2057
|
+
> lx <- seq(1, 5, length.out = 41)
|
|
2058
|
+
> yl <- expression(e^{-frac(1,2) * {log[10](x)}^2})
|
|
2059
|
+
> y <- exp(-.5*lx^2)
|
|
2060
|
+
> op <- par(mfrow = c(2,1), mar = par("mar")-c(1,0,2,0), mgp = c(2, .7, 0))
|
|
2061
|
+
> plot(10^lx, y, log = "xy", type = "l", col = "purple",
|
|
2062
|
+
+ main = "Log-Log plot", ylab = yl, xlab = "x")
|
|
2063
|
+
> plot(10^lx, y, log = "xy", type = "o", pch = ".", col = "forestgreen",
|
|
2064
|
+
+ main = "Log-Log plot with custom axes", ylab = yl, xlab = "x",
|
|
2065
|
+
+ axes = FALSE, frame.plot = TRUE)
|
|
2066
|
+
> my.at <- 10^(1:5)
|
|
2067
|
+
> axis(1, at = my.at, labels = formatC(my.at, format = "fg"))
|
|
2068
|
+
> e.y <- -5:-1 ; at.y <- 10^e.y
|
|
2069
|
+
> axis(2, at = at.y, col.axis = "red", las = 1,
|
|
2070
|
+
+ labels = as.expression(lapply(e.y, function(E) bquote(10^.(E)))))
|
|
2071
|
+
> par(op)
|
|
2072
|
+
>
|
|
2073
|
+
>
|
|
2074
|
+
>
|
|
2075
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
2076
|
+
> cleanEx()
|
|
2077
|
+
> nameEx("plot.design")
|
|
2078
|
+
> ### * plot.design
|
|
2079
|
+
>
|
|
2080
|
+
> flush(stderr()); flush(stdout())
|
|
2081
|
+
>
|
|
2082
|
+
> ### Name: plot.design
|
|
2083
|
+
> ### Title: Plot Univariate Effects of a Design or Model
|
|
2084
|
+
> ### Aliases: plot.design
|
|
2085
|
+
> ### Keywords: hplot
|
|
2086
|
+
>
|
|
2087
|
+
> ### ** Examples
|
|
2088
|
+
>
|
|
2089
|
+
> require(stats)
|
|
2090
|
+
> plot.design(warpbreaks) # automatic for data frame with one numeric var.
|
|
2091
|
+
>
|
|
2092
|
+
> Form <- breaks ~ wool + tension
|
|
2093
|
+
> summary(fm1 <- aov(Form, data = warpbreaks))
|
|
2094
|
+
Df Sum Sq Mean Sq F value Pr(>F)
|
|
2095
|
+
wool 1 451 450.7 3.339 0.07361 .
|
|
2096
|
+
tension 2 2034 1017.1 7.537 0.00138 **
|
|
2097
|
+
Residuals 50 6748 135.0
|
|
2098
|
+
---
|
|
2099
|
+
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
|
|
2100
|
+
> plot.design( Form, data = warpbreaks, col = 2) # same as above
|
|
2101
|
+
>
|
|
2102
|
+
> ## More than one y :
|
|
2103
|
+
> utils::str(esoph)
|
|
2104
|
+
'data.frame': 88 obs. of 5 variables:
|
|
2105
|
+
$ agegp : Ord.factor w/ 6 levels "25-34"<"35-44"<..: 1 1 1 1 1 1 1 1 1 1 ...
|
|
2106
|
+
$ alcgp : Ord.factor w/ 4 levels "0-39g/day"<"40-79"<..: 1 1 1 1 2 2 2 2 3 3 ...
|
|
2107
|
+
$ tobgp : Ord.factor w/ 4 levels "0-9g/day"<"10-19"<..: 1 2 3 4 1 2 3 4 1 2 ...
|
|
2108
|
+
$ ncases : num 0 0 0 0 0 0 0 0 0 0 ...
|
|
2109
|
+
$ ncontrols: num 40 10 6 5 27 7 4 7 2 1 ...
|
|
2110
|
+
> plot.design(esoph) ## two plots; if interactive you are "ask"ed
|
|
2111
|
+
>
|
|
2112
|
+
> ## or rather, compare mean and median:
|
|
2113
|
+
> op <- par(mfcol = 1:2)
|
|
2114
|
+
> plot.design(ncases/ncontrols ~ ., data = esoph, ylim = c(0, 0.8))
|
|
2115
|
+
> plot.design(ncases/ncontrols ~ ., data = esoph, ylim = c(0, 0.8),
|
|
2116
|
+
+ fun = median)
|
|
2117
|
+
> par(op)
|
|
2118
|
+
>
|
|
2119
|
+
>
|
|
2120
|
+
>
|
|
2121
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
2122
|
+
> cleanEx()
|
|
2123
|
+
> nameEx("plot.factor")
|
|
2124
|
+
> ### * plot.factor
|
|
2125
|
+
>
|
|
2126
|
+
> flush(stderr()); flush(stdout())
|
|
2127
|
+
>
|
|
2128
|
+
> ### Name: plot.factor
|
|
2129
|
+
> ### Title: Plotting Factor Variables
|
|
2130
|
+
> ### Aliases: plot.factor
|
|
2131
|
+
> ### Keywords: hplot
|
|
2132
|
+
>
|
|
2133
|
+
> ### ** Examples
|
|
2134
|
+
>
|
|
2135
|
+
> require(grDevices)
|
|
2136
|
+
> plot(weight ~ group, data = PlantGrowth) # numeric vector ~ factor
|
|
2137
|
+
> plot(cut(weight, 2) ~ group, data = PlantGrowth) # factor ~ factor
|
|
2138
|
+
> ## passing "..." to spineplot() eventually:
|
|
2139
|
+
> plot(cut(weight, 3) ~ group, data = PlantGrowth,
|
|
2140
|
+
+ col = hcl(c(0, 120, 240), 50, 70))
|
|
2141
|
+
>
|
|
2142
|
+
> plot(PlantGrowth$group, axes = FALSE, main = "no axes") # extremely silly
|
|
2143
|
+
>
|
|
2144
|
+
>
|
|
2145
|
+
>
|
|
2146
|
+
> cleanEx()
|
|
2147
|
+
> nameEx("plot.formula")
|
|
2148
|
+
> ### * plot.formula
|
|
2149
|
+
>
|
|
2150
|
+
> flush(stderr()); flush(stdout())
|
|
2151
|
+
>
|
|
2152
|
+
> ### Name: plot.formula
|
|
2153
|
+
> ### Title: Formula Notation for Scatterplots
|
|
2154
|
+
> ### Aliases: plot.formula lines.formula points.formula text.formula
|
|
2155
|
+
> ### Keywords: hplot aplot
|
|
2156
|
+
>
|
|
2157
|
+
> ### ** Examples
|
|
2158
|
+
>
|
|
2159
|
+
> op <- par(mfrow = c(2,1))
|
|
2160
|
+
> plot(Ozone ~ Wind, data = airquality, pch = as.character(Month))
|
|
2161
|
+
> plot(Ozone ~ Wind, data = airquality, pch = as.character(Month),
|
|
2162
|
+
+ subset = Month != 7)
|
|
2163
|
+
> par(op)
|
|
2164
|
+
>
|
|
2165
|
+
> ## text.formula() can be very natural:
|
|
2166
|
+
> wb <- within(warpbreaks, {
|
|
2167
|
+
+ time <- seq_along(breaks); W.T <- wool:tension })
|
|
2168
|
+
> plot(breaks ~ time, data = wb, type = "b")
|
|
2169
|
+
> text(breaks ~ time, data = wb, labels = W.T, col = 1+as.integer(wool))
|
|
2170
|
+
>
|
|
2171
|
+
>
|
|
2172
|
+
>
|
|
2173
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
2174
|
+
> cleanEx()
|
|
2175
|
+
> nameEx("plot.raster")
|
|
2176
|
+
> ### * plot.raster
|
|
2177
|
+
>
|
|
2178
|
+
> flush(stderr()); flush(stdout())
|
|
2179
|
+
>
|
|
2180
|
+
> ### Name: plot.raster
|
|
2181
|
+
> ### Title: Plotting Raster Images
|
|
2182
|
+
> ### Aliases: plot.raster
|
|
2183
|
+
> ### Keywords: hplot
|
|
2184
|
+
>
|
|
2185
|
+
> ### ** Examples
|
|
2186
|
+
>
|
|
2187
|
+
> require(grDevices)
|
|
2188
|
+
> r <- as.raster(c(0.5, 1, 0.5))
|
|
2189
|
+
> plot(r)
|
|
2190
|
+
> # additional arguments to rasterImage()
|
|
2191
|
+
> plot(r, interpolate=FALSE)
|
|
2192
|
+
> # distort
|
|
2193
|
+
> plot(r, asp=NA)
|
|
2194
|
+
> # fill page
|
|
2195
|
+
> op <- par(mar=rep(0, 4))
|
|
2196
|
+
> plot(r, asp=NA)
|
|
2197
|
+
> par(op)
|
|
2198
|
+
> # normal annotations work
|
|
2199
|
+
> plot(r, asp=NA)
|
|
2200
|
+
> box()
|
|
2201
|
+
> title(main="This is my raster")
|
|
2202
|
+
> # add to existing plot
|
|
2203
|
+
> plot(1)
|
|
2204
|
+
> plot(r, add=TRUE)
|
|
2205
|
+
>
|
|
2206
|
+
>
|
|
2207
|
+
>
|
|
2208
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
2209
|
+
> cleanEx()
|
|
2210
|
+
> nameEx("plot.table")
|
|
2211
|
+
> ### * plot.table
|
|
2212
|
+
>
|
|
2213
|
+
> flush(stderr()); flush(stdout())
|
|
2214
|
+
>
|
|
2215
|
+
> ### Name: plot.table
|
|
2216
|
+
> ### Title: Plot Methods for 'table' Objects
|
|
2217
|
+
> ### Aliases: plot.table lines.table points.table
|
|
2218
|
+
> ### Keywords: hplot category
|
|
2219
|
+
>
|
|
2220
|
+
> ### ** Examples
|
|
2221
|
+
>
|
|
2222
|
+
> ## 1-d tables
|
|
2223
|
+
> (Poiss.tab <- table(N = stats::rpois(200, lambda = 5)))
|
|
2224
|
+
N
|
|
2225
|
+
1 2 3 4 5 6 7 8 9 10 11
|
|
2226
|
+
4 14 25 38 40 33 21 16 4 2 3
|
|
2227
|
+
> plot(Poiss.tab, main = "plot(table(rpois(200, lambda = 5)))")
|
|
2228
|
+
>
|
|
2229
|
+
> plot(table(state.division))
|
|
2230
|
+
>
|
|
2231
|
+
> ## 4-D :
|
|
2232
|
+
> plot(Titanic, main ="plot(Titanic, main= *)")
|
|
2233
|
+
>
|
|
2234
|
+
>
|
|
2235
|
+
>
|
|
2236
|
+
>
|
|
2237
|
+
> cleanEx()
|
|
2238
|
+
> nameEx("plot.window")
|
|
2239
|
+
> ### * plot.window
|
|
2240
|
+
>
|
|
2241
|
+
> flush(stderr()); flush(stdout())
|
|
2242
|
+
>
|
|
2243
|
+
> ### Name: plot.window
|
|
2244
|
+
> ### Title: Set up World Coordinates for Graphics Window
|
|
2245
|
+
> ### Aliases: plot.window xlim ylim asp
|
|
2246
|
+
> ### Keywords: aplot
|
|
2247
|
+
>
|
|
2248
|
+
> ### ** Examples
|
|
2249
|
+
>
|
|
2250
|
+
> ##--- An example for the use of 'asp' :
|
|
2251
|
+
> require(stats) # normally loaded
|
|
2252
|
+
> loc <- cmdscale(eurodist)
|
|
2253
|
+
> rx <- range(x <- loc[,1])
|
|
2254
|
+
> ry <- range(y <- -loc[,2])
|
|
2255
|
+
> plot(x, y, type = "n", asp = 1, xlab = "", ylab = "")
|
|
2256
|
+
> abline(h = pretty(rx, 10), v = pretty(ry, 10), col = "lightgray")
|
|
2257
|
+
> text(x, y, labels(eurodist), cex = 0.8)
|
|
2258
|
+
>
|
|
2259
|
+
>
|
|
2260
|
+
>
|
|
2261
|
+
> cleanEx()
|
|
2262
|
+
> nameEx("plot.xy")
|
|
2263
|
+
> ### * plot.xy
|
|
2264
|
+
>
|
|
2265
|
+
> flush(stderr()); flush(stdout())
|
|
2266
|
+
>
|
|
2267
|
+
> ### Name: plot.xy
|
|
2268
|
+
> ### Title: Basic Internal Plot Function
|
|
2269
|
+
> ### Aliases: plot.xy
|
|
2270
|
+
> ### Keywords: aplot
|
|
2271
|
+
>
|
|
2272
|
+
> ### ** Examples
|
|
2273
|
+
>
|
|
2274
|
+
> points.default # to see how it calls "plot.xy(xy.coords(x, y), ...)"
|
|
2275
|
+
function (x, y = NULL, type = "p", ...)
|
|
2276
|
+
plot.xy(xy.coords(x, y), type = type, ...)
|
|
2277
|
+
<bytecode: 0x0000019cccf29bf8>
|
|
2278
|
+
<environment: namespace:graphics>
|
|
2279
|
+
>
|
|
2280
|
+
>
|
|
2281
|
+
>
|
|
2282
|
+
> cleanEx()
|
|
2283
|
+
> nameEx("plothistogram")
|
|
2284
|
+
> ### * plothistogram
|
|
2285
|
+
>
|
|
2286
|
+
> flush(stderr()); flush(stdout())
|
|
2287
|
+
>
|
|
2288
|
+
> ### Name: plot.histogram
|
|
2289
|
+
> ### Title: Plot Histograms
|
|
2290
|
+
> ### Aliases: plot.histogram lines.histogram
|
|
2291
|
+
> ### Keywords: hplot iplot
|
|
2292
|
+
>
|
|
2293
|
+
> ### ** Examples
|
|
2294
|
+
>
|
|
2295
|
+
> (wwt <- hist(women$weight, nclass = 7, plot = FALSE))
|
|
2296
|
+
$breaks
|
|
2297
|
+
[1] 115 120 125 130 135 140 145 150 155 160 165
|
|
2298
|
+
|
|
2299
|
+
$counts
|
|
2300
|
+
[1] 3 1 2 2 1 1 2 1 1 1
|
|
2301
|
+
|
|
2302
|
+
$density
|
|
2303
|
+
[1] 0.04000000 0.01333333 0.02666667 0.02666667 0.01333333 0.01333333
|
|
2304
|
+
[7] 0.02666667 0.01333333 0.01333333 0.01333333
|
|
2305
|
+
|
|
2306
|
+
$mids
|
|
2307
|
+
[1] 117.5 122.5 127.5 132.5 137.5 142.5 147.5 152.5 157.5 162.5
|
|
2308
|
+
|
|
2309
|
+
$xname
|
|
2310
|
+
[1] "women$weight"
|
|
2311
|
+
|
|
2312
|
+
$equidist
|
|
2313
|
+
[1] TRUE
|
|
2314
|
+
|
|
2315
|
+
attr(,"class")
|
|
2316
|
+
[1] "histogram"
|
|
2317
|
+
> plot(wwt, labels = TRUE) # default main & xlab using wwt$xname
|
|
2318
|
+
> plot(wwt, border = "dark blue", col = "light blue",
|
|
2319
|
+
+ main = "Histogram of 15 women's weights", xlab = "weight [pounds]")
|
|
2320
|
+
>
|
|
2321
|
+
> ## Fake "lines" example, using non-default labels:
|
|
2322
|
+
> w2 <- wwt; w2$counts <- w2$counts - 1
|
|
2323
|
+
> lines(w2, col = "Midnight Blue", labels = ifelse(w2$counts, "> 1", "1"))
|
|
2324
|
+
>
|
|
2325
|
+
>
|
|
2326
|
+
>
|
|
2327
|
+
> cleanEx()
|
|
2328
|
+
> nameEx("points")
|
|
2329
|
+
> ### * points
|
|
2330
|
+
>
|
|
2331
|
+
> flush(stderr()); flush(stdout())
|
|
2332
|
+
>
|
|
2333
|
+
> ### Name: points
|
|
2334
|
+
> ### Title: Add Points to a Plot
|
|
2335
|
+
> ### Aliases: points points.default pch
|
|
2336
|
+
> ### Keywords: aplot
|
|
2337
|
+
>
|
|
2338
|
+
> ### ** Examples
|
|
2339
|
+
>
|
|
2340
|
+
> require(stats) # for rnorm
|
|
2341
|
+
> plot(-4:4, -4:4, type = "n") # setting up coord. system
|
|
2342
|
+
> points(rnorm(200), rnorm(200), col = "red")
|
|
2343
|
+
> points(rnorm(100)/2, rnorm(100)/2, col = "blue", cex = 1.5)
|
|
2344
|
+
>
|
|
2345
|
+
> op <- par(bg = "light blue")
|
|
2346
|
+
> x <- seq(0, 2*pi, length.out = 51)
|
|
2347
|
+
> ## something "between type='b' and type='o'":
|
|
2348
|
+
> plot(x, sin(x), type = "o", pch = 21, bg = par("bg"), col = "blue", cex = .6,
|
|
2349
|
+
+ main = 'plot(..., type="o", pch=21, bg=par("bg"))')
|
|
2350
|
+
> par(op)
|
|
2351
|
+
>
|
|
2352
|
+
> ## Not run:
|
|
2353
|
+
> ##D ## The figure was produced by calls like
|
|
2354
|
+
> ##D png("pch.png", height = 0.7, width = 7, res = 100, units = "in")
|
|
2355
|
+
> ##D par(mar = rep(0,4))
|
|
2356
|
+
> ##D plot(c(-1, 26), 0:1, type = "n", axes = FALSE)
|
|
2357
|
+
> ##D text(0:25, 0.6, 0:25, cex = 0.5)
|
|
2358
|
+
> ##D points(0:25, rep(0.3, 26), pch = 0:25, bg = "grey")
|
|
2359
|
+
> ## End(Not run)
|
|
2360
|
+
>
|
|
2361
|
+
> ##-------- Showing all the extra & some char graphics symbols ---------
|
|
2362
|
+
> pchShow <-
|
|
2363
|
+
+ function(extras = c("*",".", "o","O","0","+","-","|","%","#"),
|
|
2364
|
+
+ cex = 3, ## good for both .Device=="postscript" and "x11"
|
|
2365
|
+
+ col = "red3", bg = "gold", coltext = "brown", cextext = 1.2,
|
|
2366
|
+
+ main = paste("plot symbols : points (... pch = *, cex =",
|
|
2367
|
+
+ cex,")"))
|
|
2368
|
+
+ {
|
|
2369
|
+
+ nex <- length(extras)
|
|
2370
|
+
+ np <- 26 + nex
|
|
2371
|
+
+ ipch <- 0:(np-1)
|
|
2372
|
+
+ k <- floor(sqrt(np))
|
|
2373
|
+
+ dd <- c(-1,1)/2
|
|
2374
|
+
+ rx <- dd + range(ix <- ipch %/% k)
|
|
2375
|
+
+ ry <- dd + range(iy <- 3 + (k-1)- ipch %% k)
|
|
2376
|
+
+ pch <- as.list(ipch) # list with integers & strings
|
|
2377
|
+
+ if(nex > 0) pch[26+ 1:nex] <- as.list(extras)
|
|
2378
|
+
+ plot(rx, ry, type = "n", axes = FALSE, xlab = "", ylab = "", main = main)
|
|
2379
|
+
+ abline(v = ix, h = iy, col = "lightgray", lty = "dotted")
|
|
2380
|
+
+ for(i in 1:np) {
|
|
2381
|
+
+ pc <- pch[[i]]
|
|
2382
|
+
+ ## 'col' symbols with a 'bg'-colored interior (where available) :
|
|
2383
|
+
+ points(ix[i], iy[i], pch = pc, col = col, bg = bg, cex = cex)
|
|
2384
|
+
+ if(cextext > 0)
|
|
2385
|
+
+ text(ix[i] - 0.3, iy[i], pc, col = coltext, cex = cextext)
|
|
2386
|
+
+ }
|
|
2387
|
+
+ }
|
|
2388
|
+
>
|
|
2389
|
+
> pchShow()
|
|
2390
|
+
> pchShow(c("o","O","0"), cex = 2.5)
|
|
2391
|
+
> pchShow(NULL, cex = 4, cextext = 0, main = NULL)
|
|
2392
|
+
>
|
|
2393
|
+
>
|
|
2394
|
+
>
|
|
2395
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
2396
|
+
> cleanEx()
|
|
2397
|
+
> nameEx("polygon")
|
|
2398
|
+
> ### * polygon
|
|
2399
|
+
>
|
|
2400
|
+
> flush(stderr()); flush(stdout())
|
|
2401
|
+
>
|
|
2402
|
+
> ### Name: polygon
|
|
2403
|
+
> ### Title: Polygon Drawing
|
|
2404
|
+
> ### Aliases: polygon
|
|
2405
|
+
> ### Keywords: aplot
|
|
2406
|
+
>
|
|
2407
|
+
> ### ** Examples
|
|
2408
|
+
>
|
|
2409
|
+
> x <- c(1:9, 8:1)
|
|
2410
|
+
> y <- c(1, 2*(5:3), 2, -1, 17, 9, 8, 2:9)
|
|
2411
|
+
> op <- par(mfcol = c(3, 1))
|
|
2412
|
+
> for(xpd in c(FALSE, TRUE, NA)) {
|
|
2413
|
+
+ plot(1:10, main = paste("xpd =", xpd))
|
|
2414
|
+
+ box("figure", col = "pink", lwd = 3)
|
|
2415
|
+
+ polygon(x, y, xpd = xpd, col = "orange", lty = 2, lwd = 2, border = "red")
|
|
2416
|
+
+ }
|
|
2417
|
+
> par(op)
|
|
2418
|
+
>
|
|
2419
|
+
> n <- 100
|
|
2420
|
+
> xx <- c(0:n, n:0)
|
|
2421
|
+
> yy <- c(c(0, cumsum(stats::rnorm(n))), rev(c(0, cumsum(stats::rnorm(n)))))
|
|
2422
|
+
> plot (xx, yy, type = "n", xlab = "Time", ylab = "Distance")
|
|
2423
|
+
> polygon(xx, yy, col = "gray", border = "red")
|
|
2424
|
+
> title("Distance Between Brownian Motions")
|
|
2425
|
+
>
|
|
2426
|
+
> # Multiple polygons from NA values
|
|
2427
|
+
> # and recycling of col, border, and lty
|
|
2428
|
+
> op <- par(mfrow = c(2, 1))
|
|
2429
|
+
> plot(c(1, 9), 1:2, type = "n")
|
|
2430
|
+
> polygon(1:9, c(2,1,2,1,1,2,1,2,1),
|
|
2431
|
+
+ col = c("red", "blue"),
|
|
2432
|
+
+ border = c("green", "yellow"),
|
|
2433
|
+
+ lwd = 3, lty = c("dashed", "solid"))
|
|
2434
|
+
> plot(c(1, 9), 1:2, type = "n")
|
|
2435
|
+
> polygon(1:9, c(2,1,2,1,NA,2,1,2,1),
|
|
2436
|
+
+ col = c("red", "blue"),
|
|
2437
|
+
+ border = c("green", "yellow"),
|
|
2438
|
+
+ lwd = 3, lty = c("dashed", "solid"))
|
|
2439
|
+
> par(op)
|
|
2440
|
+
>
|
|
2441
|
+
> # Line-shaded polygons
|
|
2442
|
+
> plot(c(1, 9), 1:2, type = "n")
|
|
2443
|
+
> polygon(1:9, c(2,1,2,1,NA,2,1,2,1),
|
|
2444
|
+
+ density = c(10, 20), angle = c(-45, 45))
|
|
2445
|
+
>
|
|
2446
|
+
>
|
|
2447
|
+
>
|
|
2448
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
2449
|
+
> cleanEx()
|
|
2450
|
+
> nameEx("polypath")
|
|
2451
|
+
> ### * polypath
|
|
2452
|
+
>
|
|
2453
|
+
> flush(stderr()); flush(stdout())
|
|
2454
|
+
>
|
|
2455
|
+
> ### Name: polypath
|
|
2456
|
+
> ### Title: Path Drawing
|
|
2457
|
+
> ### Aliases: polypath
|
|
2458
|
+
> ### Keywords: aplot
|
|
2459
|
+
>
|
|
2460
|
+
> ### ** Examples
|
|
2461
|
+
>
|
|
2462
|
+
> plotPath <- function(x, y, col = "grey", rule = "winding") {
|
|
2463
|
+
+ plot.new()
|
|
2464
|
+
+ plot.window(range(x, na.rm = TRUE), range(y, na.rm = TRUE))
|
|
2465
|
+
+ polypath(x, y, col = col, rule = rule)
|
|
2466
|
+
+ if (!is.na(col))
|
|
2467
|
+
+ mtext(paste("Rule:", rule), side = 1, line = 0)
|
|
2468
|
+
+ }
|
|
2469
|
+
>
|
|
2470
|
+
> plotRules <- function(x, y, title) {
|
|
2471
|
+
+ plotPath(x, y)
|
|
2472
|
+
+ plotPath(x, y, rule = "evenodd")
|
|
2473
|
+
+ mtext(title, side = 3, line = 0)
|
|
2474
|
+
+ plotPath(x, y, col = NA)
|
|
2475
|
+
+ }
|
|
2476
|
+
>
|
|
2477
|
+
> op <- par(mfrow = c(5, 3), mar = c(2, 1, 1, 1))
|
|
2478
|
+
>
|
|
2479
|
+
> plotRules(c(.1, .1, .9, .9, NA, .2, .2, .8, .8),
|
|
2480
|
+
+ c(.1, .9, .9, .1, NA, .2, .8, .8, .2),
|
|
2481
|
+
+ "Nested rectangles, both clockwise")
|
|
2482
|
+
> plotRules(c(.1, .1, .9, .9, NA, .2, .8, .8, .2),
|
|
2483
|
+
+ c(.1, .9, .9, .1, NA, .2, .2, .8, .8),
|
|
2484
|
+
+ "Nested rectangles, outer clockwise, inner anti-clockwise")
|
|
2485
|
+
> plotRules(c(.1, .1, .4, .4, NA, .6, .9, .9, .6),
|
|
2486
|
+
+ c(.1, .4, .4, .1, NA, .6, .6, .9, .9),
|
|
2487
|
+
+ "Disjoint rectangles")
|
|
2488
|
+
> plotRules(c(.1, .1, .6, .6, NA, .4, .4, .9, .9),
|
|
2489
|
+
+ c(.1, .6, .6, .1, NA, .4, .9, .9, .4),
|
|
2490
|
+
+ "Overlapping rectangles, both clockwise")
|
|
2491
|
+
> plotRules(c(.1, .1, .6, .6, NA, .4, .9, .9, .4),
|
|
2492
|
+
+ c(.1, .6, .6, .1, NA, .4, .4, .9, .9),
|
|
2493
|
+
+ "Overlapping rectangles, one clockwise, other anti-clockwise")
|
|
2494
|
+
>
|
|
2495
|
+
> par(op)
|
|
2496
|
+
>
|
|
2497
|
+
>
|
|
2498
|
+
>
|
|
2499
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
2500
|
+
> cleanEx()
|
|
2501
|
+
> nameEx("rasterImage")
|
|
2502
|
+
> ### * rasterImage
|
|
2503
|
+
>
|
|
2504
|
+
> flush(stderr()); flush(stdout())
|
|
2505
|
+
>
|
|
2506
|
+
> ### Name: rasterImage
|
|
2507
|
+
> ### Title: Draw One or More Raster Images
|
|
2508
|
+
> ### Aliases: rasterImage
|
|
2509
|
+
> ### Keywords: aplot
|
|
2510
|
+
>
|
|
2511
|
+
> ### ** Examples
|
|
2512
|
+
>
|
|
2513
|
+
> require(grDevices)
|
|
2514
|
+
> ## set up the plot region:
|
|
2515
|
+
> op <- par(bg = "thistle")
|
|
2516
|
+
> plot(c(100, 250), c(300, 450), type = "n", xlab = "", ylab = "")
|
|
2517
|
+
> image <- as.raster(matrix(0:1, ncol = 5, nrow = 3))
|
|
2518
|
+
Warning in matrix(0:1, ncol = 5, nrow = 3) :
|
|
2519
|
+
data length [2] is not a sub-multiple or multiple of the number of rows [3]
|
|
2520
|
+
> rasterImage(image, 100, 300, 150, 350, interpolate = FALSE)
|
|
2521
|
+
> rasterImage(image, 100, 400, 150, 450)
|
|
2522
|
+
> rasterImage(image, 200, 300, 200 + xinch(.5), 300 + yinch(.3),
|
|
2523
|
+
+ interpolate = FALSE)
|
|
2524
|
+
> rasterImage(image, 200, 400, 250, 450, angle = 15, interpolate = FALSE)
|
|
2525
|
+
> par(op)
|
|
2526
|
+
>
|
|
2527
|
+
>
|
|
2528
|
+
>
|
|
2529
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
2530
|
+
> cleanEx()
|
|
2531
|
+
> nameEx("rect")
|
|
2532
|
+
> ### * rect
|
|
2533
|
+
>
|
|
2534
|
+
> flush(stderr()); flush(stdout())
|
|
2535
|
+
>
|
|
2536
|
+
> ### Name: rect
|
|
2537
|
+
> ### Title: Draw One or More Rectangles
|
|
2538
|
+
> ### Aliases: rect
|
|
2539
|
+
> ### Keywords: aplot
|
|
2540
|
+
>
|
|
2541
|
+
> ### ** Examples
|
|
2542
|
+
>
|
|
2543
|
+
> require(grDevices)
|
|
2544
|
+
> ## set up the plot region:
|
|
2545
|
+
> op <- par(bg = "thistle")
|
|
2546
|
+
> plot(c(100, 250), c(300, 450), type = "n", xlab = "", ylab = "",
|
|
2547
|
+
+ main = "2 x 11 rectangles; 'rect(100+i,300+i, 150+i,380+i)'")
|
|
2548
|
+
> i <- 4*(0:10)
|
|
2549
|
+
> ## draw rectangles with bottom left (100, 300)+i
|
|
2550
|
+
> ## and top right (150, 380)+i
|
|
2551
|
+
> rect(100+i, 300+i, 150+i, 380+i, col = rainbow(11, start = 0.7, end = 0.1))
|
|
2552
|
+
> rect(240-i, 320+i, 250-i, 410+i, col = heat.colors(11), lwd = i/5)
|
|
2553
|
+
> ## Background alternating ( transparent / "bg" ) :
|
|
2554
|
+
> j <- 10*(0:5)
|
|
2555
|
+
> rect(125+j, 360+j, 141+j, 405+j/2, col = c(NA,0),
|
|
2556
|
+
+ border = "gold", lwd = 2)
|
|
2557
|
+
> rect(125+j, 296+j/2, 141+j, 331+j/5, col = c(NA,"midnightblue"))
|
|
2558
|
+
> mtext("+ 2 x 6 rect(*, col = c(NA,0)) and col = c(NA,\"m..blue\")")
|
|
2559
|
+
>
|
|
2560
|
+
> ## an example showing colouring and shading
|
|
2561
|
+
> plot(c(100, 200), c(300, 450), type= "n", xlab = "", ylab = "")
|
|
2562
|
+
> rect(100, 300, 125, 350) # transparent
|
|
2563
|
+
> rect(100, 400, 125, 450, col = "green", border = "blue") # coloured
|
|
2564
|
+
> rect(115, 375, 150, 425, col = par("bg"), border = "transparent")
|
|
2565
|
+
> rect(150, 300, 175, 350, density = 10, border = "red")
|
|
2566
|
+
> rect(150, 400, 175, 450, density = 30, col = "blue",
|
|
2567
|
+
+ angle = -30, border = "transparent")
|
|
2568
|
+
>
|
|
2569
|
+
> legend(180, 450, legend = 1:4, fill = c(NA, "green", par("fg"), "blue"),
|
|
2570
|
+
+ density = c(NA, NA, 10, 30), angle = c(NA, NA, 30, -30))
|
|
2571
|
+
>
|
|
2572
|
+
> par(op)
|
|
2573
|
+
>
|
|
2574
|
+
>
|
|
2575
|
+
>
|
|
2576
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
2577
|
+
> cleanEx()
|
|
2578
|
+
> nameEx("rug")
|
|
2579
|
+
> ### * rug
|
|
2580
|
+
>
|
|
2581
|
+
> flush(stderr()); flush(stdout())
|
|
2582
|
+
>
|
|
2583
|
+
> ### Name: rug
|
|
2584
|
+
> ### Title: Add a Rug to a Plot
|
|
2585
|
+
> ### Aliases: rug
|
|
2586
|
+
> ### Keywords: aplot
|
|
2587
|
+
>
|
|
2588
|
+
> ### ** Examples
|
|
2589
|
+
>
|
|
2590
|
+
> require(stats) # both 'density' and its default method
|
|
2591
|
+
> with(faithful, {
|
|
2592
|
+
+ plot(density(eruptions, bw = 0.15))
|
|
2593
|
+
+ rug(eruptions)
|
|
2594
|
+
+ rug(jitter(eruptions, amount = 0.01), side = 3, col = "light blue")
|
|
2595
|
+
+ })
|
|
2596
|
+
>
|
|
2597
|
+
>
|
|
2598
|
+
>
|
|
2599
|
+
> cleanEx()
|
|
2600
|
+
> nameEx("screen")
|
|
2601
|
+
> ### * screen
|
|
2602
|
+
>
|
|
2603
|
+
> flush(stderr()); flush(stdout())
|
|
2604
|
+
>
|
|
2605
|
+
> ### Name: screen
|
|
2606
|
+
> ### Title: Creating and Controlling Multiple Screens on a Single Device
|
|
2607
|
+
> ### Aliases: screen split.screen erase.screen close.screen
|
|
2608
|
+
> ### Keywords: aplot dplot device
|
|
2609
|
+
>
|
|
2610
|
+
> ### ** Examples
|
|
2611
|
+
>
|
|
2612
|
+
> if (interactive()) {
|
|
2613
|
+
+ par(bg = "white") # default is likely to be transparent
|
|
2614
|
+
+ split.screen(c(2, 1)) # split display into two screens
|
|
2615
|
+
+ split.screen(c(1, 3), screen = 2) # now split the bottom half into 3
|
|
2616
|
+
+ screen(1) # prepare screen 1 for output
|
|
2617
|
+
+ plot(10:1)
|
|
2618
|
+
+ screen(4) # prepare screen 4 for output
|
|
2619
|
+
+ plot(10:1)
|
|
2620
|
+
+ close.screen(all = TRUE) # exit split-screen mode
|
|
2621
|
+
+
|
|
2622
|
+
+ split.screen(c(2, 1)) # split display into two screens
|
|
2623
|
+
+ split.screen(c(1, 2), 2) # split bottom half in two
|
|
2624
|
+
+ plot(1:10) # screen 3 is active, draw plot
|
|
2625
|
+
+ erase.screen() # forgot label, erase and redraw
|
|
2626
|
+
+ plot(1:10, ylab = "ylab 3")
|
|
2627
|
+
+ screen(1) # prepare screen 1 for output
|
|
2628
|
+
+ plot(1:10)
|
|
2629
|
+
+ screen(4) # prepare screen 4 for output
|
|
2630
|
+
+ plot(1:10, ylab = "ylab 4")
|
|
2631
|
+
+ screen(1, FALSE) # return to screen 1, but do not clear
|
|
2632
|
+
+ plot(10:1, axes = FALSE, lty = 2, ylab = "") # overlay second plot
|
|
2633
|
+
+ axis(4) # add tic marks to right-hand axis
|
|
2634
|
+
+ title("Plot 1")
|
|
2635
|
+
+ close.screen(all = TRUE) # exit split-screen mode
|
|
2636
|
+
+ }
|
|
2637
|
+
>
|
|
2638
|
+
>
|
|
2639
|
+
>
|
|
2640
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
2641
|
+
> cleanEx()
|
|
2642
|
+
> nameEx("segments")
|
|
2643
|
+
> ### * segments
|
|
2644
|
+
>
|
|
2645
|
+
> flush(stderr()); flush(stdout())
|
|
2646
|
+
>
|
|
2647
|
+
> ### Name: segments
|
|
2648
|
+
> ### Title: Add Line Segments to a Plot
|
|
2649
|
+
> ### Aliases: segments
|
|
2650
|
+
> ### Keywords: aplot
|
|
2651
|
+
>
|
|
2652
|
+
> ### ** Examples
|
|
2653
|
+
>
|
|
2654
|
+
> x <- stats::runif(12); y <- stats::rnorm(12)
|
|
2655
|
+
> i <- order(x, y); x <- x[i]; y <- y[i]
|
|
2656
|
+
> plot(x, y, main = "arrows(.) and segments(.)")
|
|
2657
|
+
> ## draw arrows from point to point :
|
|
2658
|
+
> s <- seq(length(x)-1) # one shorter than data
|
|
2659
|
+
> arrows(x[s], y[s], x[s+1], y[s+1], col= 1:3)
|
|
2660
|
+
> s <- s[-length(s)]
|
|
2661
|
+
> segments(x[s], y[s], x[s+2], y[s+2], col= 'pink')
|
|
2662
|
+
>
|
|
2663
|
+
>
|
|
2664
|
+
>
|
|
2665
|
+
> cleanEx()
|
|
2666
|
+
> nameEx("smoothScatter")
|
|
2667
|
+
> ### * smoothScatter
|
|
2668
|
+
>
|
|
2669
|
+
> flush(stderr()); flush(stdout())
|
|
2670
|
+
>
|
|
2671
|
+
> ### Name: smoothScatter
|
|
2672
|
+
> ### Title: Scatterplots with Smoothed Densities Color Representation
|
|
2673
|
+
> ### Aliases: smoothScatter
|
|
2674
|
+
> ### Keywords: hplot
|
|
2675
|
+
>
|
|
2676
|
+
> ### ** Examples
|
|
2677
|
+
>
|
|
2678
|
+
>
|
|
2679
|
+
> cleanEx()
|
|
2680
|
+
> nameEx("spineplot")
|
|
2681
|
+
> ### * spineplot
|
|
2682
|
+
>
|
|
2683
|
+
> flush(stderr()); flush(stdout())
|
|
2684
|
+
>
|
|
2685
|
+
> ### Name: spineplot
|
|
2686
|
+
> ### Title: Spine Plots and Spinograms
|
|
2687
|
+
> ### Aliases: spineplot spineplot.default spineplot.formula
|
|
2688
|
+
> ### Keywords: hplot
|
|
2689
|
+
>
|
|
2690
|
+
> ### ** Examples
|
|
2691
|
+
>
|
|
2692
|
+
> ## treatment and improvement of patients with rheumatoid arthritis
|
|
2693
|
+
> treatment <- factor(rep(c(1, 2), c(43, 41)), levels = c(1, 2),
|
|
2694
|
+
+ labels = c("placebo", "treated"))
|
|
2695
|
+
> improved <- factor(rep(c(1, 2, 3, 1, 2, 3), c(29, 7, 7, 13, 7, 21)),
|
|
2696
|
+
+ levels = c(1, 2, 3),
|
|
2697
|
+
+ labels = c("none", "some", "marked"))
|
|
2698
|
+
>
|
|
2699
|
+
> ## (dependence on a categorical variable)
|
|
2700
|
+
> (spineplot(improved ~ treatment))
|
|
2701
|
+
improved
|
|
2702
|
+
treatment none some marked
|
|
2703
|
+
placebo 29 7 7
|
|
2704
|
+
treated 13 7 21
|
|
2705
|
+
>
|
|
2706
|
+
> ## applications and admissions by department at UC Berkeley
|
|
2707
|
+
> ## (two-way tables)
|
|
2708
|
+
> (spineplot(marginSums(UCBAdmissions, c(3, 2)),
|
|
2709
|
+
+ main = "Applications at UCB"))
|
|
2710
|
+
Gender
|
|
2711
|
+
Dept Male Female
|
|
2712
|
+
A 825 108
|
|
2713
|
+
B 560 25
|
|
2714
|
+
C 325 593
|
|
2715
|
+
D 417 375
|
|
2716
|
+
E 191 393
|
|
2717
|
+
F 373 341
|
|
2718
|
+
> (spineplot(marginSums(UCBAdmissions, c(3, 1)),
|
|
2719
|
+
+ main = "Admissions at UCB"))
|
|
2720
|
+
Admit
|
|
2721
|
+
Dept Admitted Rejected
|
|
2722
|
+
A 601 332
|
|
2723
|
+
B 370 215
|
|
2724
|
+
C 322 596
|
|
2725
|
+
D 269 523
|
|
2726
|
+
E 147 437
|
|
2727
|
+
F 46 668
|
|
2728
|
+
>
|
|
2729
|
+
> ## NASA space shuttle o-ring failures
|
|
2730
|
+
> fail <- factor(c(2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1,
|
|
2731
|
+
+ 1, 1, 1, 2, 1, 1, 1, 1, 1),
|
|
2732
|
+
+ levels = c(1, 2), labels = c("no", "yes"))
|
|
2733
|
+
> temperature <- c(53, 57, 58, 63, 66, 67, 67, 67, 68, 69, 70, 70,
|
|
2734
|
+
+ 70, 70, 72, 73, 75, 75, 76, 76, 78, 79, 81)
|
|
2735
|
+
>
|
|
2736
|
+
> ## (dependence on a numerical variable)
|
|
2737
|
+
> (spineplot(fail ~ temperature))
|
|
2738
|
+
fail
|
|
2739
|
+
temperature no yes
|
|
2740
|
+
[50,55] 0 1
|
|
2741
|
+
(55,60] 0 2
|
|
2742
|
+
(60,65] 0 1
|
|
2743
|
+
(65,70] 8 2
|
|
2744
|
+
(70,75] 3 1
|
|
2745
|
+
(75,80] 4 0
|
|
2746
|
+
(80,85] 1 0
|
|
2747
|
+
> (spineplot(fail ~ temperature, breaks = 3))
|
|
2748
|
+
fail
|
|
2749
|
+
temperature no yes
|
|
2750
|
+
[50,60] 0 3
|
|
2751
|
+
(60,70] 8 3
|
|
2752
|
+
(70,80] 7 1
|
|
2753
|
+
(80,90] 1 0
|
|
2754
|
+
> (spineplot(fail ~ temperature, breaks = quantile(temperature)))
|
|
2755
|
+
fail
|
|
2756
|
+
temperature no yes
|
|
2757
|
+
[53,67] 4 4
|
|
2758
|
+
(67,70] 4 2
|
|
2759
|
+
(70,75] 3 1
|
|
2760
|
+
(75,81] 5 0
|
|
2761
|
+
>
|
|
2762
|
+
> ## highlighting for failures
|
|
2763
|
+
> spineplot(fail ~ temperature, ylevels = 2:1)
|
|
2764
|
+
>
|
|
2765
|
+
>
|
|
2766
|
+
>
|
|
2767
|
+
> cleanEx()
|
|
2768
|
+
> nameEx("stars")
|
|
2769
|
+
> ### * stars
|
|
2770
|
+
>
|
|
2771
|
+
> flush(stderr()); flush(stdout())
|
|
2772
|
+
>
|
|
2773
|
+
> ### Name: stars
|
|
2774
|
+
> ### Title: Star (Spider/Radar) Plots and Segment Diagrams
|
|
2775
|
+
> ### Aliases: stars
|
|
2776
|
+
> ### Keywords: hplot multivariate
|
|
2777
|
+
>
|
|
2778
|
+
> ### ** Examples
|
|
2779
|
+
>
|
|
2780
|
+
> require(grDevices)
|
|
2781
|
+
> stars(mtcars[, 1:7], key.loc = c(14, 2),
|
|
2782
|
+
+ main = "Motor Trend Cars : stars(*, full = F)", full = FALSE)
|
|
2783
|
+
> stars(mtcars[, 1:7], key.loc = c(14, 1.5),
|
|
2784
|
+
+ main = "Motor Trend Cars : full stars()", flip.labels = FALSE)
|
|
2785
|
+
>
|
|
2786
|
+
> ## 'Spider' or 'Radar' plot:
|
|
2787
|
+
> stars(mtcars[, 1:7], locations = c(0, 0), radius = FALSE,
|
|
2788
|
+
+ key.loc = c(0, 0), main = "Motor Trend Cars", lty = 2)
|
|
2789
|
+
>
|
|
2790
|
+
> ## Segment Diagrams:
|
|
2791
|
+
> palette(rainbow(12, s = 0.6, v = 0.75))
|
|
2792
|
+
> stars(mtcars[, 1:7], len = 0.8, key.loc = c(12, 1.5),
|
|
2793
|
+
+ main = "Motor Trend Cars", draw.segments = TRUE)
|
|
2794
|
+
> stars(mtcars[, 1:7], len = 0.6, key.loc = c(1.5, 0),
|
|
2795
|
+
+ main = "Motor Trend Cars", draw.segments = TRUE,
|
|
2796
|
+
+ frame.plot = TRUE, nrow = 4, cex = .7)
|
|
2797
|
+
>
|
|
2798
|
+
> ## scale linearly (not affinely) to [0, 1]
|
|
2799
|
+
> USJudge <- apply(USJudgeRatings, 2, function(x) x/max(x))
|
|
2800
|
+
> Jnam <- row.names(USJudgeRatings)
|
|
2801
|
+
> Snam <- abbreviate(substring(Jnam, 1, regexpr("[,.]",Jnam) - 1), 7)
|
|
2802
|
+
> stars(USJudge, labels = Jnam, scale = FALSE,
|
|
2803
|
+
+ key.loc = c(13, 1.5), main = "Judge not ...", len = 0.8)
|
|
2804
|
+
> stars(USJudge, labels = Snam, scale = FALSE,
|
|
2805
|
+
+ key.loc = c(13, 1.5), radius = FALSE)
|
|
2806
|
+
>
|
|
2807
|
+
> loc <- stars(USJudge, labels = NULL, scale = FALSE,
|
|
2808
|
+
+ radius = FALSE, frame.plot = TRUE,
|
|
2809
|
+
+ key.loc = c(13, 1.5), main = "Judge not ...", len = 1.2)
|
|
2810
|
+
> text(loc, Snam, col = "blue", cex = 0.8, xpd = TRUE)
|
|
2811
|
+
>
|
|
2812
|
+
> ## 'Segments':
|
|
2813
|
+
> stars(USJudge, draw.segments = TRUE, scale = FALSE, key.loc = c(13,1.5))
|
|
2814
|
+
>
|
|
2815
|
+
> ## 'Spider':
|
|
2816
|
+
> stars(USJudgeRatings, locations = c(0, 0), scale = FALSE, radius = FALSE,
|
|
2817
|
+
+ col.stars = 1:10, key.loc = c(0, 0), main = "US Judges rated")
|
|
2818
|
+
> ## Same as above, but with colored lines instead of filled polygons.
|
|
2819
|
+
> stars(USJudgeRatings, locations = c(0, 0), scale = FALSE, radius = FALSE,
|
|
2820
|
+
+ col.lines = 1:10, key.loc = c(0, 0), main = "US Judges rated")
|
|
2821
|
+
> ## 'Radar-Segments'
|
|
2822
|
+
> stars(USJudgeRatings[1:10,], locations = 0:1, scale = FALSE,
|
|
2823
|
+
+ draw.segments = TRUE, col.segments = 0, col.stars = 1:10, key.loc = 0:1,
|
|
2824
|
+
+ main = "US Judges 1-10 ")
|
|
2825
|
+
> palette("default")
|
|
2826
|
+
> stars(cbind(1:16, 10*(16:1)), draw.segments = TRUE,
|
|
2827
|
+
+ main = "A Joke -- do *not* use symbols on 2D data!")
|
|
2828
|
+
>
|
|
2829
|
+
>
|
|
2830
|
+
>
|
|
2831
|
+
> cleanEx()
|
|
2832
|
+
> nameEx("stem")
|
|
2833
|
+
> ### * stem
|
|
2834
|
+
>
|
|
2835
|
+
> flush(stderr()); flush(stdout())
|
|
2836
|
+
>
|
|
2837
|
+
> ### Name: stem
|
|
2838
|
+
> ### Title: Stem-and-Leaf Plots
|
|
2839
|
+
> ### Aliases: stem
|
|
2840
|
+
> ### Keywords: univar distribution
|
|
2841
|
+
>
|
|
2842
|
+
> ### ** Examples
|
|
2843
|
+
>
|
|
2844
|
+
> stem(islands)
|
|
2845
|
+
|
|
2846
|
+
The decimal point is 3 digit(s) to the right of the |
|
|
2847
|
+
|
|
2848
|
+
0 | 00000000000000000000000000000111111222338
|
|
2849
|
+
2 | 07
|
|
2850
|
+
4 | 5
|
|
2851
|
+
6 | 8
|
|
2852
|
+
8 | 4
|
|
2853
|
+
10 | 5
|
|
2854
|
+
12 |
|
|
2855
|
+
14 |
|
|
2856
|
+
16 | 0
|
|
2857
|
+
|
|
2858
|
+
> stem(log10(islands))
|
|
2859
|
+
|
|
2860
|
+
The decimal point is at the |
|
|
2861
|
+
|
|
2862
|
+
1 | 1111112222233444
|
|
2863
|
+
1 | 5555556666667899999
|
|
2864
|
+
2 | 3344
|
|
2865
|
+
2 | 59
|
|
2866
|
+
3 |
|
|
2867
|
+
3 | 5678
|
|
2868
|
+
4 | 012
|
|
2869
|
+
|
|
2870
|
+
>
|
|
2871
|
+
>
|
|
2872
|
+
>
|
|
2873
|
+
> cleanEx()
|
|
2874
|
+
> nameEx("stripchart")
|
|
2875
|
+
> ### * stripchart
|
|
2876
|
+
>
|
|
2877
|
+
> flush(stderr()); flush(stdout())
|
|
2878
|
+
>
|
|
2879
|
+
> ### Name: stripchart
|
|
2880
|
+
> ### Title: 1-D Scatter Plots
|
|
2881
|
+
> ### Aliases: stripchart stripchart.default stripchart.formula
|
|
2882
|
+
> ### Keywords: hplot
|
|
2883
|
+
>
|
|
2884
|
+
> ### ** Examples
|
|
2885
|
+
>
|
|
2886
|
+
> x <- stats::rnorm(50)
|
|
2887
|
+
> xr <- round(x, 1)
|
|
2888
|
+
> stripchart(x) ; m <- mean(par("usr")[1:2])
|
|
2889
|
+
> text(m, 1.04, "stripchart(x, \"overplot\")")
|
|
2890
|
+
> stripchart(xr, method = "stack", add = TRUE, at = 1.2)
|
|
2891
|
+
> text(m, 1.35, "stripchart(round(x,1), \"stack\")")
|
|
2892
|
+
> stripchart(xr, method = "jitter", add = TRUE, at = 0.7)
|
|
2893
|
+
> text(m, 0.85, "stripchart(round(x,1), \"jitter\")")
|
|
2894
|
+
>
|
|
2895
|
+
> stripchart(decrease ~ treatment,
|
|
2896
|
+
+ main = "stripchart(OrchardSprays)",
|
|
2897
|
+
+ vertical = TRUE, log = "y", data = OrchardSprays)
|
|
2898
|
+
>
|
|
2899
|
+
> stripchart(decrease ~ treatment, at = c(1:8)^2,
|
|
2900
|
+
+ main = "stripchart(OrchardSprays)",
|
|
2901
|
+
+ vertical = TRUE, log = "y", data = OrchardSprays)
|
|
2902
|
+
>
|
|
2903
|
+
>
|
|
2904
|
+
>
|
|
2905
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
2906
|
+
> cleanEx()
|
|
2907
|
+
> nameEx("strwidth")
|
|
2908
|
+
> ### * strwidth
|
|
2909
|
+
>
|
|
2910
|
+
> flush(stderr()); flush(stdout())
|
|
2911
|
+
>
|
|
2912
|
+
> ### Name: strwidth
|
|
2913
|
+
> ### Title: Plotting Dimensions of Character Strings and Math Expressions
|
|
2914
|
+
> ### Aliases: strwidth strheight
|
|
2915
|
+
> ### Keywords: dplot character
|
|
2916
|
+
>
|
|
2917
|
+
> ### ** Examples
|
|
2918
|
+
>
|
|
2919
|
+
> str.ex <- c("W","w","I",".","WwI.")
|
|
2920
|
+
> op <- par(pty = "s"); plot(1:100, 1:100, type = "n")
|
|
2921
|
+
> sw <- strwidth(str.ex); sw
|
|
2922
|
+
[1] 3.2600930 2.4934186 0.9600698 0.9600698 7.6736512
|
|
2923
|
+
> all.equal(sum(sw[1:4]), sw[5])
|
|
2924
|
+
[1] TRUE
|
|
2925
|
+
> #- since the last string contains the others
|
|
2926
|
+
>
|
|
2927
|
+
> sw.i <- strwidth(str.ex, "inches"); 25.4 * sw.i # width in [mm]
|
|
2928
|
+
[1] 3.996267 3.056467 1.176867 1.176867 9.406467
|
|
2929
|
+
> unique(sw / sw.i)
|
|
2930
|
+
[1] 20.72093 20.72093
|
|
2931
|
+
> # constant factor: 1 value
|
|
2932
|
+
> mean(sw.i / strwidth(str.ex, "fig")) / par('fin')[1] # = 1: are the same
|
|
2933
|
+
[1] 1
|
|
2934
|
+
>
|
|
2935
|
+
> ## See how letters fall in classes
|
|
2936
|
+
> ## -- depending on graphics device and font!
|
|
2937
|
+
> all.lett <- c(letters, LETTERS)
|
|
2938
|
+
> shL <- strheight(all.lett, units = "inches") * 72 # 'big points'
|
|
2939
|
+
> table(shL) # all have same heights ...
|
|
2940
|
+
shL
|
|
2941
|
+
8.616
|
|
2942
|
+
52
|
|
2943
|
+
> mean(shL)/par("cin")[2] # around 0.6
|
|
2944
|
+
[1] 43.08
|
|
2945
|
+
>
|
|
2946
|
+
> (swL <- strwidth(all.lett, units = "inches") * 72) # 'big points'
|
|
2947
|
+
[1] 6.672 6.672 6.000 6.672 6.672 3.336 6.672 6.672 2.664 2.664
|
|
2948
|
+
[11] 6.000 2.664 9.996 6.672 6.672 6.672 6.672 3.996 6.000 3.336
|
|
2949
|
+
[21] 6.672 6.000 8.664 6.000 6.000 6.000 8.004 8.004 8.664 8.664
|
|
2950
|
+
[31] 8.004 7.332 9.336 8.664 3.336 6.000 8.004 6.672 9.996 8.664
|
|
2951
|
+
[41] 9.336 8.004 9.336 8.664 8.004 7.332 8.664 8.004 11.328 8.004
|
|
2952
|
+
[51] 8.004 7.332
|
|
2953
|
+
> split(all.lett, factor(round(swL, 2)))
|
|
2954
|
+
$`2.66`
|
|
2955
|
+
[1] "i" "j" "l"
|
|
2956
|
+
|
|
2957
|
+
$`3.34`
|
|
2958
|
+
[1] "f" "t" "I"
|
|
2959
|
+
|
|
2960
|
+
$`4`
|
|
2961
|
+
[1] "r"
|
|
2962
|
+
|
|
2963
|
+
$`6`
|
|
2964
|
+
[1] "c" "k" "s" "v" "x" "y" "z" "J"
|
|
2965
|
+
|
|
2966
|
+
$`6.67`
|
|
2967
|
+
[1] "a" "b" "d" "e" "g" "h" "n" "o" "p" "q" "u" "L"
|
|
2968
|
+
|
|
2969
|
+
$`7.33`
|
|
2970
|
+
[1] "F" "T" "Z"
|
|
2971
|
+
|
|
2972
|
+
$`8`
|
|
2973
|
+
[1] "A" "B" "E" "K" "P" "S" "V" "X" "Y"
|
|
2974
|
+
|
|
2975
|
+
$`8.66`
|
|
2976
|
+
[1] "w" "C" "D" "H" "N" "R" "U"
|
|
2977
|
+
|
|
2978
|
+
$`9.34`
|
|
2979
|
+
[1] "G" "O" "Q"
|
|
2980
|
+
|
|
2981
|
+
$`10`
|
|
2982
|
+
[1] "m" "M"
|
|
2983
|
+
|
|
2984
|
+
$`11.33`
|
|
2985
|
+
[1] "W"
|
|
2986
|
+
|
|
2987
|
+
>
|
|
2988
|
+
> sumex <- expression(sum(x[i], i=1,n), e^{i * pi} == -1)
|
|
2989
|
+
> strwidth(sumex)
|
|
2990
|
+
[1] 5.795241 11.484959
|
|
2991
|
+
> strheight(sumex)
|
|
2992
|
+
[1] 8.057449 3.420738
|
|
2993
|
+
>
|
|
2994
|
+
> par(op) #- reset to previous setting
|
|
2995
|
+
>
|
|
2996
|
+
>
|
|
2997
|
+
>
|
|
2998
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
2999
|
+
> cleanEx()
|
|
3000
|
+
> nameEx("sunflowerplot")
|
|
3001
|
+
> ### * sunflowerplot
|
|
3002
|
+
>
|
|
3003
|
+
> flush(stderr()); flush(stdout())
|
|
3004
|
+
>
|
|
3005
|
+
> ### Name: sunflowerplot
|
|
3006
|
+
> ### Title: Produce a Sunflower Scatter Plot
|
|
3007
|
+
> ### Aliases: sunflowerplot sunflowerplot.default sunflowerplot.formula
|
|
3008
|
+
> ### Keywords: hplot smooth nonparametric
|
|
3009
|
+
>
|
|
3010
|
+
> ### ** Examples
|
|
3011
|
+
>
|
|
3012
|
+
> require(stats) # for rnorm
|
|
3013
|
+
> require(grDevices)
|
|
3014
|
+
>
|
|
3015
|
+
> ## 'number' is computed automatically:
|
|
3016
|
+
> sunflowerplot(iris[, 3:4])
|
|
3017
|
+
> ## Imitating Chambers et al, p.109, closely:
|
|
3018
|
+
> sunflowerplot(iris[, 3:4], cex = .2, cex.fact = 1, size = .035, seg.lwd = .8)
|
|
3019
|
+
> ## or
|
|
3020
|
+
> sunflowerplot(Petal.Width ~ Petal.Length, data = iris,
|
|
3021
|
+
+ cex = .2, cex.fact = 1, size = .035, seg.lwd = .8)
|
|
3022
|
+
>
|
|
3023
|
+
>
|
|
3024
|
+
> sunflowerplot(x = sort(2*round(rnorm(100))), y = round(rnorm(100), 0),
|
|
3025
|
+
+ main = "Sunflower Plot of Rounded N(0,1)")
|
|
3026
|
+
> ## Similarly using a "xyTable" argument:
|
|
3027
|
+
> xyT <- xyTable(x = sort(2*round(rnorm(100))), y = round(rnorm(100), 0),
|
|
3028
|
+
+ digits = 3)
|
|
3029
|
+
> utils::str(xyT, vec.len = 20)
|
|
3030
|
+
List of 3
|
|
3031
|
+
$ x : num [1:25] -6 -4 -4 -4 -4 -2 -2 -2 -2 -2 0 0 0 0 0 0 2 2 2 2 2 4 4 4 4
|
|
3032
|
+
$ y : num [1:25] 0 -2 0 1 2 -2 -1 0 1 2 -3 -2 -1 0 1 2 -2 -1 0 1 3 -1 0 1 2
|
|
3033
|
+
$ number: int [1:25] 1 1 1 1 3 1 4 8 4 1 1 3 5 17 12 2 1 8 12 6 1 1 3 2 1
|
|
3034
|
+
> sunflowerplot(xyT, main = "2nd Sunflower Plot of Rounded N(0,1)")
|
|
3035
|
+
>
|
|
3036
|
+
> ## A 'marked point process' {explicit 'number' argument}:
|
|
3037
|
+
> sunflowerplot(rnorm(100), rnorm(100), number = rpois(n = 100, lambda = 2),
|
|
3038
|
+
+ main = "Sunflower plot (marked point process)",
|
|
3039
|
+
+ rotate = TRUE, col = "blue4")
|
|
3040
|
+
>
|
|
3041
|
+
>
|
|
3042
|
+
>
|
|
3043
|
+
> cleanEx()
|
|
3044
|
+
> nameEx("symbols")
|
|
3045
|
+
> ### * symbols
|
|
3046
|
+
>
|
|
3047
|
+
> flush(stderr()); flush(stdout())
|
|
3048
|
+
>
|
|
3049
|
+
> ### Name: symbols
|
|
3050
|
+
> ### Title: Draw Symbols (Circles, Squares, Stars, Thermometers, Boxplots)
|
|
3051
|
+
> ### Aliases: symbols
|
|
3052
|
+
> ### Keywords: aplot hplot multivariate
|
|
3053
|
+
>
|
|
3054
|
+
> ### ** Examples
|
|
3055
|
+
>
|
|
3056
|
+
> require(stats); require(grDevices)
|
|
3057
|
+
> x <- 1:10
|
|
3058
|
+
> y <- sort(10*runif(10))
|
|
3059
|
+
> z <- runif(10)
|
|
3060
|
+
> z3 <- cbind(z, 2*runif(10), runif(10))
|
|
3061
|
+
> symbols(x, y, thermometers = cbind(.5, 1, z), inches = .5, fg = 1:10)
|
|
3062
|
+
> symbols(x, y, thermometers = z3, inches = FALSE)
|
|
3063
|
+
> text(x, y, apply(format(round(z3, digits = 2)), 1, paste, collapse = ","),
|
|
3064
|
+
+ adj = c(-.2,0), cex = .75, col = "purple", xpd = NA)
|
|
3065
|
+
>
|
|
3066
|
+
> ## Note that example(trees) shows more sensible plots!
|
|
3067
|
+
> N <- nrow(trees)
|
|
3068
|
+
> with(trees, {
|
|
3069
|
+
+ ## Girth is diameter in inches
|
|
3070
|
+
+ symbols(Height, Volume, circles = Girth/24, inches = FALSE,
|
|
3071
|
+
+ main = "Trees' Girth") # xlab and ylab automatically
|
|
3072
|
+
+ ## Colours too:
|
|
3073
|
+
+ op <- palette(rainbow(N, end = 0.9))
|
|
3074
|
+
+ symbols(Height, Volume, circles = Girth/16, inches = FALSE, bg = 1:N,
|
|
3075
|
+
+ fg = "gray30", main = "symbols(*, circles = Girth/16, bg = 1:N)")
|
|
3076
|
+
+ palette(op)
|
|
3077
|
+
+ })
|
|
3078
|
+
>
|
|
3079
|
+
>
|
|
3080
|
+
>
|
|
3081
|
+
> cleanEx()
|
|
3082
|
+
> nameEx("title")
|
|
3083
|
+
> ### * title
|
|
3084
|
+
>
|
|
3085
|
+
> flush(stderr()); flush(stdout())
|
|
3086
|
+
>
|
|
3087
|
+
> ### Name: title
|
|
3088
|
+
> ### Title: Plot Annotation
|
|
3089
|
+
> ### Aliases: title
|
|
3090
|
+
> ### Keywords: aplot
|
|
3091
|
+
>
|
|
3092
|
+
> ### ** Examples
|
|
3093
|
+
>
|
|
3094
|
+
> plot(cars, main = "") # here, could use main directly
|
|
3095
|
+
> title(main = "Stopping Distance versus Speed")
|
|
3096
|
+
>
|
|
3097
|
+
> plot(cars, main = "")
|
|
3098
|
+
> title(main = list("Stopping Distance versus Speed", cex = 1.5,
|
|
3099
|
+
+ col = "red", font = 3))
|
|
3100
|
+
>
|
|
3101
|
+
> ## Specifying "..." :
|
|
3102
|
+
> plot(1, col.axis = "sky blue", col.lab = "thistle")
|
|
3103
|
+
> title("Main Title", sub = "subtitle",
|
|
3104
|
+
+ cex.main = 2, font.main= 4, col.main= "blue",
|
|
3105
|
+
+ cex.sub = 0.75, font.sub = 3, col.sub = "red")
|
|
3106
|
+
>
|
|
3107
|
+
>
|
|
3108
|
+
> x <- seq(-4, 4, length.out = 101)
|
|
3109
|
+
> y <- cbind(sin(x), cos(x))
|
|
3110
|
+
> matplot(x, y, type = "l", xaxt = "n",
|
|
3111
|
+
+ main = expression(paste(plain(sin) * phi, " and ",
|
|
3112
|
+
+ plain(cos) * phi)),
|
|
3113
|
+
+ ylab = expression("sin" * phi, "cos" * phi), # only 1st is taken
|
|
3114
|
+
+ xlab = expression(paste("Phase Angle ", phi)),
|
|
3115
|
+
+ col.main = "blue")
|
|
3116
|
+
> axis(1, at = c(-pi, -pi/2, 0, pi/2, pi),
|
|
3117
|
+
+ labels = expression(-pi, -pi/2, 0, pi/2, pi))
|
|
3118
|
+
> abline(h = 0, v = pi/2 * c(-1,1), lty = 2, lwd = .1, col = "gray70")
|
|
3119
|
+
>
|
|
3120
|
+
>
|
|
3121
|
+
>
|
|
3122
|
+
> cleanEx()
|
|
3123
|
+
> nameEx("units")
|
|
3124
|
+
> ### * units
|
|
3125
|
+
>
|
|
3126
|
+
> flush(stderr()); flush(stdout())
|
|
3127
|
+
>
|
|
3128
|
+
> ### Name: units
|
|
3129
|
+
> ### Title: Graphical Units
|
|
3130
|
+
> ### Aliases: xinch yinch xyinch
|
|
3131
|
+
> ### Keywords: dplot
|
|
3132
|
+
>
|
|
3133
|
+
> ### ** Examples
|
|
3134
|
+
>
|
|
3135
|
+
> all(c(xinch(), yinch()) == xyinch()) # TRUE
|
|
3136
|
+
[1] TRUE
|
|
3137
|
+
> xyinch()
|
|
3138
|
+
[1] 1.5000000 0.4185559
|
|
3139
|
+
> xyinch #- to see that is really delta{"usr"} / "pin"
|
|
3140
|
+
function (xy = 1, warn.log = TRUE)
|
|
3141
|
+
{
|
|
3142
|
+
if (warn.log && (par("xlog") || par("ylog")))
|
|
3143
|
+
warning("log scale: xyinch() is nonsense")
|
|
3144
|
+
u <- par("usr")
|
|
3145
|
+
xy * c(u[2L] - u[1L], u[4L] - u[3L])/par("pin")
|
|
3146
|
+
}
|
|
3147
|
+
<bytecode: 0x0000019ccc7ed9a0>
|
|
3148
|
+
<environment: namespace:graphics>
|
|
3149
|
+
>
|
|
3150
|
+
> ## plot labels offset 0.12 inches to the right
|
|
3151
|
+
> ## of plotted symbols in a plot
|
|
3152
|
+
> with(mtcars, {
|
|
3153
|
+
+ plot(mpg, disp, pch = 19, main = "Motor Trend Cars")
|
|
3154
|
+
+ text(mpg + xinch(0.12), disp, row.names(mtcars),
|
|
3155
|
+
+ adj = 0, cex = .7, col = "blue")
|
|
3156
|
+
+ })
|
|
3157
|
+
>
|
|
3158
|
+
>
|
|
3159
|
+
>
|
|
3160
|
+
> cleanEx()
|
|
3161
|
+
> nameEx("xspline")
|
|
3162
|
+
> ### * xspline
|
|
3163
|
+
>
|
|
3164
|
+
> flush(stderr()); flush(stdout())
|
|
3165
|
+
>
|
|
3166
|
+
> ### Name: xspline
|
|
3167
|
+
> ### Title: Draw an X-spline
|
|
3168
|
+
> ### Aliases: xspline
|
|
3169
|
+
> ### Keywords: aplot
|
|
3170
|
+
>
|
|
3171
|
+
> ### ** Examples
|
|
3172
|
+
>
|
|
3173
|
+
> ## based on examples in ?grid.xspline
|
|
3174
|
+
>
|
|
3175
|
+
> xsplineTest <- function(s, open = TRUE,
|
|
3176
|
+
+ x = c(1,1,3,3)/4,
|
|
3177
|
+
+ y = c(1,3,3,1)/4, ...) {
|
|
3178
|
+
+ plot(c(0,1), c(0,1), type = "n", axes = FALSE, xlab = "", ylab = "")
|
|
3179
|
+
+ points(x, y, pch = 19)
|
|
3180
|
+
+ xspline(x, y, s, open, ...)
|
|
3181
|
+
+ text(x+0.05*c(-1,-1,1,1), y+0.05*c(-1,1,1,-1), s)
|
|
3182
|
+
+ }
|
|
3183
|
+
> op <- par(mfrow = c(3,3), mar = rep(0,4), oma = c(0,0,2,0))
|
|
3184
|
+
> xsplineTest(c(0, -1, -1, 0))
|
|
3185
|
+
> xsplineTest(c(0, -1, 0, 0))
|
|
3186
|
+
> xsplineTest(c(0, -1, 1, 0))
|
|
3187
|
+
> xsplineTest(c(0, 0, -1, 0))
|
|
3188
|
+
> xsplineTest(c(0, 0, 0, 0))
|
|
3189
|
+
> xsplineTest(c(0, 0, 1, 0))
|
|
3190
|
+
> xsplineTest(c(0, 1, -1, 0))
|
|
3191
|
+
> xsplineTest(c(0, 1, 0, 0))
|
|
3192
|
+
> xsplineTest(c(0, 1, 1, 0))
|
|
3193
|
+
> title("Open X-splines", outer = TRUE)
|
|
3194
|
+
>
|
|
3195
|
+
> par(mfrow = c(3,3), mar = rep(0,4), oma = c(0,0,2,0))
|
|
3196
|
+
> xsplineTest(c(0, -1, -1, 0), FALSE, col = "grey80")
|
|
3197
|
+
> xsplineTest(c(0, -1, 0, 0), FALSE, col = "grey80")
|
|
3198
|
+
> xsplineTest(c(0, -1, 1, 0), FALSE, col = "grey80")
|
|
3199
|
+
> xsplineTest(c(0, 0, -1, 0), FALSE, col = "grey80")
|
|
3200
|
+
> xsplineTest(c(0, 0, 0, 0), FALSE, col = "grey80")
|
|
3201
|
+
> xsplineTest(c(0, 0, 1, 0), FALSE, col = "grey80")
|
|
3202
|
+
> xsplineTest(c(0, 1, -1, 0), FALSE, col = "grey80")
|
|
3203
|
+
> xsplineTest(c(0, 1, 0, 0), FALSE, col = "grey80")
|
|
3204
|
+
> xsplineTest(c(0, 1, 1, 0), FALSE, col = "grey80")
|
|
3205
|
+
> title("Closed X-splines", outer = TRUE)
|
|
3206
|
+
>
|
|
3207
|
+
> par(op)
|
|
3208
|
+
>
|
|
3209
|
+
> x <- sort(stats::rnorm(5))
|
|
3210
|
+
> y <- sort(stats::rnorm(5))
|
|
3211
|
+
> plot(x, y, pch = 19)
|
|
3212
|
+
> res <- xspline(x, y, 1, draw = FALSE)
|
|
3213
|
+
> lines(res)
|
|
3214
|
+
> ## the end points may be very close together,
|
|
3215
|
+
> ## so use last few for direction
|
|
3216
|
+
> nr <- length(res$x)
|
|
3217
|
+
> arrows(res$x[1], res$y[1], res$x[4], res$y[4], code = 1, length = 0.1)
|
|
3218
|
+
> arrows(res$x[nr-3], res$y[nr-3], res$x[nr], res$y[nr], code = 2, length = 0.1)
|
|
3219
|
+
>
|
|
3220
|
+
>
|
|
3221
|
+
>
|
|
3222
|
+
> graphics::par(get("par.postscript", pos = 'CheckExEnv'))
|
|
3223
|
+
> ### * <FOOTER>
|
|
3224
|
+
> ###
|
|
3225
|
+
> cleanEx()
|
|
3226
|
+
> options(digits = 7L)
|
|
3227
|
+
> base::cat("Time elapsed: ", proc.time() - base::get("ptime", pos = 'CheckExEnv'),"\n")
|
|
3228
|
+
Time elapsed: 3.054 0.221 3.303 0 0
|
|
3229
|
+
> grDevices::dev.off()
|
|
3230
|
+
null device
|
|
3231
|
+
1
|
|
3232
|
+
> ###
|
|
3233
|
+
> ### Local variables: ***
|
|
3234
|
+
> ### mode: outline-minor ***
|
|
3235
|
+
> ### outline-regexp: "\\(> \\)?### [*]+" ***
|
|
3236
|
+
> ### End: ***
|
|
3237
|
+
> quit('no')
|