R - a language for data analysis and graphics |
Start R, a system for statistical computation and graphics, with the specified options, or invoke an R tool via the ’R CMD’ interface. R is a language which bears a passing resemblance to the S language developed at AT&T Bell Laboratories. It provides support for a variety of statistical and graphical analyses. R is a true computer language which contains a number of control-flow constructions for iteration and alternation. It allows users to add additional functionality by defin- ing new functions.





Open source program R je komplexný systém na manipuláciu s údajmi, ich spracovanie, analýzu a následné grafické zobrazenie. R je implementáciou jazyka S. Výsledky štatistickej analýzy sú v grafickej podobe zobrazené na displeji, niektoré medzivýsledky sa môžu ukladať alebo zapisovať do súborov. Pre začiatočníkov sa môže zdať, že program R je veľmi zložitý, nie je to však celkom pravda. Hlavná prednosť programu je v jeho flexibilite. Bežné štatistické programy výsledky analýzy zobrazujú priebežne na obrazovke, program R ich však uchováva ako „objekty“, ktoré sa nezobrazujú, ale sú počas práce vždy dostupné. Program R je voľne šírený vďaka licencii GNU~GPL. R
Spustenie R Program R spustíme príkazom R (popis linux distribúcie) [root@ssjh R]# R Obrazovka R version 2.10.1 (2009-12-14) Copyright (C) 2009 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. Ukončenie programu R > q() > Save workspace image? [y/n/c]: Objekt uložiť = y Object neukladať = n Späť do pragramu = c Objekt> objects() # zobrazenie objetov > rm(data1) # zmazanie objektu, dát príklad: > objects() [1] "aa" "beav1" "data" "data2" "fcol" [6] "fill" "i1" "i2" "mycolors" "myline.fit" [11] "mymax" "Ni" "o" "oldpar" "r" [16] "root.fun" "rotsinc" "sinc.exp" "test" "tN" [21] "volcano" "x" "y" "y.fun" "z" [26] "zi" "ziaci" "z0" > Basic operácie, kalkulačka > 2 + 3 * 5 # sčitanie a násobenie > log (10) # logaritmus so základom e=2.718282 > 4^2 # exponent > 3/2 # delenie > sqrt (16) # odmocnina > abs (3-7) # absolútna hodnota > pi # ludolfovo číslo π > exp(2) # exponent Prvý graf > png(file="statsospol.png", bg="transparent") > x=c(235,96,214) > names(x)=c("Plán","1 termín","1+2 termín") > mycolors=c("yellow","blue","black") > barplot(x,col=mycolors,main="Štatistika SOŠ polytechnická Bardejov",sub="stav k 4. apríl 2010") > dev.off() > q()



CRAN mirror
1: Argentina (Buenos Aires) 2: Australia
3: Austria 4: Belgium
5: Brazil (PR) 6: Brazil (RJ)
7: Brazil (SP 1) 8: Brazil (SP 2)
9: Canada (BC) 10: Canada (NS)
11: Canada (ON) 12: Canada (QC 1)
13: Canada (QC 2) 14: Chile
15: China (Beijing 1) 16: China (Beijing 2)
17: China (Hong Kong) 18: Colombia
19: Denmark 20: France (Toulouse)
21: France (Lyon) 22: France (Paris)
23: Germany (Berlin) 24: Germany (Goettingen)
25: Germany (Hannover) 26: Germany (Muenchen)
27: Germany (Wiesbaden) 28: Iran
29: Ireland 30: Italy (Milano)
31: Italy (Padua) 32: Italy (Palermo)
33: Japan (Aizu) 34: Japan (Hyogo)
35: Japan (Tokyo) 36: Japan (Tsukuba)
37: Korea 38: Netherlands
39: New Zealand 40: Norway
41: Poland (Oswiecim) 42: Poland (Wroclaw)
43: Portugal 44: Russia
45: Singapore 1 46: Singapore 2
47: Slovakia 48: South Africa
49: Spain (Madrid) 50: Sweden
51: Switzerland 52: Taiwan (Taichung)
53: Taiwan (Taipeh) 54: Thailand
55: UK (Bristol) 56: UK (London)
57: USA (AZ) 58: USA (CA 1)
59: USA (CA 2) 60: USA (IA)
61: USA (MA) 62: USA (MD)
63: USA (MI) 64: USA (MO)
65: USA (NC) 66: USA (OH)
67: USA (PA 1) 68: USA (PA 2)
69: USA (TN) 70: USA (TX 1)
71: USA (TX 3) 72: USA (WA)
Selection:
--
Voľba miroru (číslo), napr. 23 a enter.
> library('Zelig')
Loading required package: MASS
Loading required package: boot
##
## Zelig (Version 3.4-8, built: 2010-01-20)
## Please refer to http://gking.harvard.edu/zelig for full
## documentation or help.zelig() for help with commands and
## models supported by Zelig.
##
## Zelig project citations:
## Kosuke Imai, Gary King, and Olivia Lau. (2009).
## ``Zelig: Everyone's Statistical Software,''
## http://gking.harvard.edu/zelig.
## and
## Kosuke Imai, Gary King, and Olivia Lau. (2008).
## ``Toward A Common Framework for Statistical Analysis
## and Development,'' Journal of Computational and
## Graphical Statistics, Vol. 17, No. 4 (December)
## pp. 892-913.
## To cite individual Zelig models, please use the citation format printed with
## each model run and in the documentation.
##
>
tags:
a agreement analysis and association back bar barplot boxplot boxplots chart classification cluster color colored colors conditional conditionnal conditionning contour coplot correlation cumulative curve curves d dem dendrogram density diagram distribution double ellipses escape estimator extended filled fonts for function geographic hershey hexbin highest histogram in kernel lattice map mathematical matrices matrix maunga model more mosaic of parallel perspective pie plot plots plotting quiver r regions regression rgb roc rose sample scatter scatterplot seasonal sequences simple som space special splom teapot ternary the tree us use validation vector violin volcano volcanoes walter wave whau wheel wind winner wireframe with
