R version 2.6.0 (2007-10-03) 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(92.1,91.4,90.7,92.5,94.4,94.3,87.3,85.9,89,83.3,78.6,75.7,79.6,78.5,82.6,88.7,88.5,84.6,83.4,84.4,94.1,100.4,93.1,93.1,82.1,88.1,87.7,80.2,73.8,75.3,77.3,80.1,81.3,81.5,83.2,80.8,81.3,78.8,82.8,84.9,93.2,94.7,94.8,103.9,107,118.6,112.2,112.2,93.8,96.7,108.7,112.1,107.2,113.1,120,124.4,139.5,145.8,135.6,135.5,141.6,141.2,141.6,147.1,146.5,144.1,148.5,146.9,135.7,128.5,128.7,127.6,122.5,123.4,129.4,135.3,138.5,140.6,144.2,144.3) > par2 = 'grey' > par1 = '' > main = 'Histogram tijdreeks 4' > #'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/1ltt51198316625.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] 70 80 90 100 110 120 130 140 150 $counts [1] 8 22 14 5 6 7 6 12 $intensities [1] 0.009999998 0.027500000 0.017500000 0.006250000 0.007500000 0.008750000 [7] 0.007500000 0.015000000 $density [1] 0.009999998 0.027500000 0.017500000 0.006250000 0.007500000 0.008750000 [7] 0.007500000 0.015000000 $mids [1] 75 85 95 105 115 125 135 145 $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/2sjry1198316625.tab") > > system("convert tmp/1ltt51198316625.ps tmp/1ltt51198316625.png") > > > proc.time() user system elapsed 0.617 0.164 0.688