R version 2.6.1 (2007-11-26) Copyright (C) 2007 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. > x <- c(0.000249254412317267 + ,0.000299603588409276 + ,0.000322518965091164 + ,-0.000329538636649367 + ,-6.43325994869136e-05 + ,0.000218734547908577 + ,-0.000186123790106601 + ,0.000320044464404368 + ,0.000105079817925291 + ,-3.21375723064676e-05 + ,-9.31379372201002e-05 + ,0.000863880329915967 + ,-0.000955068293604838 + ,0.000191654585176615 + ,-0.000687217159304088 + ,-0.00133295077536133 + ,-8.40818637339591e-05 + ,0.000480643586810492 + ,-0.00133724173345948 + ,-0.00078463864413933 + ,-9.63012198662017e-05 + ,-0.000267289029594886 + ,-0.000415973064666258 + ,-0.00145962546732839 + ,0.00114159591731011 + ,-0.00146064163655782 + ,-0.00105351430012057 + ,0.000585759739068242 + ,-0.00113140931418457 + ,-0.00138720915811827 + ,0.000330704048772557 + ,0.00089730707501226 + ,-0.00282718491905784 + ,0.00130177229774819 + ,0.000106725469179531 + ,0.00194958872561832 + ,0.000635002216373137 + ,-0.000802593879913022 + ,0.000669740048378942 + ,-0.00184856803744929 + ,-0.00115402862422859 + ,0.000720565693177494 + ,0.00127635646932789 + ,0.000280808847524822 + ,-0.00124166740902709 + ,0.00220850912079990 + ,0.00014951799778537 + ,0.000246824748826507 + ,-0.000329567131906322 + ,-0.000100055638308394 + ,-0.000843374093922739 + ,-0.00182816513524967 + ,0.000762276721414934 + ,0.000547214397100731 + ,-0.000261835368196878 + ,-0.000145977686326793 + ,-0.000418138010040314 + ,-0.000275994456749945 + ,0.00096506287877901 + ,-0.000122679144738069 + ,-0.00077104475183501 + ,-0.000772836964526374 + ,-9.74711304966847e-05 + ,0.00132936498148101 + ,0.000993746723184863 + ,-0.000451847013386047 + ,-0.000138456169144319 + ,-0.00109488862631829 + ,-0.000236567991803771 + ,0.000228265967558205 + ,-0.000141243730919727 + ,7.13248149721013e-05 + ,0.000100146168015486 + ,-0.000101542587067266 + ,-0.00103071143157252 + ,-0.000910687763439777 + ,-0.00169775499641645 + ,0.000648520060953617 + ,-0.00081739205188841 + ,-0.000440416182630077 + ,-0.000143836644462325 + ,-0.00086105174113707 + ,0.00118491489582653 + ,0.00092521493356959 + ,0.000685499195885314 + ,-0.00170870319900812 + ,-0.000681671133016343 + ,-0.00207056008076914 + ,0.000710534206097013 + ,-0.00163014844752510 + ,-0.00123315260753790 + ,-0.000307767159812872 + ,-0.000896177657593727 + ,0.000651475976366861 + ,0.00196454841594412 + ,0.000447156493560086) > par2 = 'grey' > par1 = '' > main = 'Histogram' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: Wessa P., (2007), Histogram (v1.0.3) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_histogram.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > par1 <- as.numeric(par1) > postscript(file="/var/www/html/rcomp/tmp/11rcu1197556004.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > if (is.na(par1)) { + myhist<-hist(x,col=par2) + } else { + if (par1 < 0) par1 <- 3 + if (par1 > 50) par1 <- 50 + myhist<-hist(x,breaks=par1,col=par2) + } > dev.off() null device 1 > myhist $breaks [1] -0.0030 -0.0025 -0.0020 -0.0015 -0.0010 -0.0005 0.0000 0.0005 0.0010 [10] 0.0015 0.0020 0.0025 $counts [1] 1 1 5 12 12 25 17 15 5 2 1 $intensities [1] 20.83333 20.83333 104.16667 250.00000 250.00000 520.83333 354.16667 [8] 312.50000 104.16667 41.66667 20.83333 $density [1] 20.83333 20.83333 104.16667 250.00000 250.00000 520.83333 354.16667 [8] 312.50000 104.16667 41.66667 20.83333 $mids [1] -0.00275 -0.00225 -0.00175 -0.00125 -0.00075 -0.00025 0.00025 0.00075 [9] 0.00125 0.00175 0.00225 $xname [1] "x" $equidist [1] TRUE attr(,"class") [1] "histogram" > n <- length(x) > load(file='/var/www/html/rcomp/createtable') > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,hyperlink('http://www.xycoon.com/histogram.htm','Frequency Table (Histogram)',''),6,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Bins',header=TRUE) > a<-table.element(a,'Midpoint',header=TRUE) > a<-table.element(a,'Abs. Frequency',header=TRUE) > a<-table.element(a,'Rel. Frequency',header=TRUE) > a<-table.element(a,'Cumul. Rel. Freq.',header=TRUE) > a<-table.element(a,'Density',header=TRUE) > a<-table.row.end(a) > crf <- 0 > for (i in 1:(length(myhist$breaks)-1)) { + a<-table.row.start(a) + dum <- paste('[',myhist$breaks[i],sep='') + dum <- paste(dum,myhist$breaks[i+1],sep=',') + dum <- paste(dum,'[',sep='') + a<-table.element(a,dum,header=TRUE) + a<-table.element(a,myhist$mids[i]) + a<-table.element(a,myhist$counts[i]) + rf <- myhist$counts[i]/n + crf <- crf + rf + a<-table.element(a,round(rf,6)) + a<-table.element(a,round(crf,6)) + a<-table.element(a,round(myhist$density[i],6)) + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/2wqlq1197556004.tab") > > system("convert tmp/11rcu1197556004.ps tmp/11rcu1197556004.png") > > > proc.time() user system elapsed 1.111 0.230 1.162