Last modified on 23 July 2009, at 20:06

Statistical Analysis: an Introduction using R/R/Plotting

PlottingEdit

One advantage of using objects is that R knows how to deal with them. For instance, plotting
Crystal Clear app terminal.png Input:

Invalid language.

You need to specify a language like this: <source lang="html4strict">...</source>

Supported languages for syntax highlighting:

c, cpp, bash, html4strict, text, java, latex, javascript, python, xml, csharp, php, css, asm, sql, pascal, matlab, html5, haskell, vb, lisp, ruby, ada, oracle11, dos, rsplus, fortran, d, bnf, ocaml, pcre, perl, vhdl, actionscript, lua, bibtex, go, bf, cobol, ini, delphi, arm, scheme, objc, prolog, actionscript3, mysql, qbasic, asp, algol68, groovy, erlang, abap, email, powershell, ecmascript, glsl, sas, apache, yaml, java5, vbnet, reg, cfm, fsharp, scala, applescript, gwbasic, clojure, pli, robots, tsql, whois, freebasic, verilog, llvm, visualfoxpro, sparql, tcl, plsql, coffeescript, scilab, dot, autoit, boo, mirc, lolcode, gnuplot, eiffel, j, teraterm, oorexx, diff, smalltalk, cmake, avisynth, perl6, xpp, typoscript, basic4gl, make, awk, e, gml, jquery, zxbasic, systemverilog, 6502acme, properties, oracle8, q, purebasic, pic16, ldif, rexx, unicon, urbi, modula3, mpasm, locobasic, progress, visualprolog, vala, octave, winbatch, oz, autohotkey, cadlisp, euphoria, pycon, oobas, povray, thinbasic, 68000devpac, mmix, modula2, cil, mxml, io, blitzbasic, parigp, oberon2


plot(table(replicate(1000, max(table(sample(1:6, 5, TRUE))))))
Crystal Clear app kscreensaver.png Result:
Graph here
This is only a very brief introduction to the graphical capabilities of R