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(1.327 + ,1.3231 + ,1.3106 + ,1.3084 + ,1.3006 + ,1.3018 + ,1.2988 + ,1.2984 + ,1.2893 + ,1.2941 + ,1.2953 + ,1.2909 + ,1.2922 + ,1.2958 + ,1.2936 + ,1.304 + ,1.3005 + ,1.2978 + ,1.2901 + ,1.2921 + ,1.2972 + ,1.2954 + ,1.302 + ,1.302 + ,1.2925 + ,1.2955 + ,1.2987 + ,1.2991 + ,1.3007 + ,1.2956 + ,1.3022 + ,1.3082 + ,1.3137 + ,1.3119 + ,1.3132 + ,1.3145 + ,1.3145 + ,1.3106 + ,1.3134 + ,1.316 + ,1.323 + ,1.3211 + ,1.3225 + ,1.3163 + ,1.3083 + ,1.31 + ,1.3135 + ,1.3152 + ,1.3155 + ,1.3156 + ,1.3218 + ,1.3183 + ,1.3226 + ,1.3325 + ,1.3303 + ,1.3296 + ,1.3293 + ,1.3351 + ,1.3327 + ,1.3265 + ,1.3347 + ,1.3348 + ,1.3352 + ,1.3318 + ,1.3366 + ,1.3358 + ,1.3352 + ,1.3373 + ,1.3426 + ,1.3418 + ,1.3467 + ,1.3532 + ,1.355 + ,1.3549 + ,1.3577 + ,1.3601 + ,1.3606 + ,1.3557 + ,1.3582 + ,1.3649 + ,1.3596 + ,1.3643 + ,1.3605 + ,1.3588 + ,1.3613 + ,1.3561 + ,1.3615 + ,1.3558 + ,1.3535 + ,1.3527 + ,1.3486 + ,1.3549 + ,1.3538 + ,1.3574 + ,1.3516 + ,1.3477 + ,1.3444 + ,1.3454 + ,1.349 + ,1.3448 + ,1.3441 + ,1.3453 + ,1.3509 + ,1.342 + ,1.3453 + ,1.3436 + ,1.3482 + ,1.3532 + ,1.3513 + ,1.347 + ,1.3349 + ,1.3355 + ,1.3345 + ,1.3287 + ,1.3304 + ,1.3314 + ,1.3404 + ,1.3403 + ,1.3427 + ,1.3397 + ,1.3441 + ,1.3461 + ,1.346 + ,1.3438 + ,1.3467 + ,1.3505 + ,1.3588 + ,1.3601 + ,1.3618 + ,1.364 + ,1.3596 + ,1.3621 + ,1.3666 + ,1.3753 + ,1.3788 + ,1.3782 + ,1.3781 + ,1.3771 + ,1.3779 + ,1.382 + ,1.3803 + ,1.3821 + ,1.3833 + ,1.3743 + ,1.3722 + ,1.3651 + ,1.3659 + ,1.3707 + ,1.3663 + ,1.3664 + ,1.3694 + ,1.3818 + ,1.3794 + ,1.3794 + ,1.3729 + ,1.365 + ,1.3651 + ,1.3591 + ,1.3476 + ,1.3405 + ,1.3454 + ,1.3476 + ,1.3508 + ,1.3493 + ,1.3574 + ,1.3615 + ,1.3658 + ,1.3664 + ,1.3631 + ,1.361 + ,1.3705 + ,1.3632 + ,1.358 + ,1.3588 + ,1.3669 + ,1.3696 + ,1.3795 + ,1.3824 + ,1.3885 + ,1.3897 + ,1.386 + ,1.3877 + ,1.3867 + ,1.3975 + ,1.403 + ,1.4049 + ,1.4113 + ,1.4106 + ,1.4127 + ,1.418 + ,1.4179 + ,1.4232 + ,1.4165 + ,1.4195 + ,1.4109 + ,1.4136 + ,1.4089 + ,1.4037 + ,1.4146 + ,1.4199 + ,1.4173 + ,1.4226 + ,1.415 + ,1.42 + ,1.4299 + ,1.4288 + ,1.4166 + ,1.4254 + ,1.423 + ,1.4309 + ,1.4384 + ,1.4391 + ,1.4407 + ,1.4447 + ,1.4423 + ,1.4479 + ,1.4488 + ,1.4547 + ,1.4722 + ,1.4666 + ,1.4683 + ,1.4579 + ,1.4607 + ,1.47 + ,1.4639 + ,1.4651 + ,1.4654 + ,1.4785 + ,1.4814 + ,1.4829 + ,1.4809 + ,1.4845 + ,1.4874 + ,1.4747 + ,1.4738 + ,1.4761 + ,1.4666 + ,1.4741 + ,1.472 + ,1.4554 + ,1.4649 + ,1.4718 + ,1.4672 + ,1.4675 + ,1.4683 + ,1.4509 + ,1.4393 + ,1.4416 + ,1.4385 + ,1.4349 + ,1.438 + ,1.4398 + ,1.4516 + ,1.4692 + ,1.4721) > par4 = 'Unknown' > par3 = 'FALSE' > par2 = 'grey' > par1 = '' > xlab = 'x' > main = 'Referentiewisselkoersen voor de euro - d' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.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) > if (par3 == 'TRUE') par3 <- TRUE > if (par3 == 'FALSE') par3 <- FALSE > if (par4 == 'Unknown') par1 <- as.numeric(par1) > if (par4 == 'Interval/Ratio') par1 <- as.numeric(par1) > if (par4 == '3-point Likert') par1 <- c(1:3 - 0.5, 3.5) > if (par4 == '4-point Likert') par1 <- c(1:4 - 0.5, 4.5) > if (par4 == '5-point Likert') par1 <- c(1:5 - 0.5, 5.5) > if (par4 == '6-point Likert') par1 <- c(1:6 - 0.5, 6.5) > if (par4 == '7-point Likert') par1 <- c(1:7 - 0.5, 7.5) > if (par4 == '8-point Likert') par1 <- c(1:8 - 0.5, 8.5) > if (par4 == '9-point Likert') par1 <- c(1:9 - 0.5, 9.5) > if (par4 == '10-point Likert') par1 <- c(1:10 - 0.5, 10.5) > postscript(file="/var/www/html/rcomp/tmp/1q8i61203883226.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > if (is.na(par1)) { + myhist<-hist(x,col=par2,main=main,xlab=xlab,right=par3) + } else { + if (par1 < 0) par1 <- 3 + if (par1 > 50) par1 <- 50 + myhist<-hist(x,breaks=par1,col=par2,main=main,xlab=xlab,right=par3) + } > dev.off() null device 1 > myhist $breaks [1] 1.28 1.30 1.32 1.34 1.36 1.38 1.40 1.42 1.44 1.46 1.48 1.50 $counts [1] 19 27 29 56 41 12 18 15 11 22 5 $intensities [1] 3.725490 5.294118 5.686275 10.980392 8.039216 2.352941 3.529412 [8] 2.941176 2.156863 4.313725 0.980392 $density [1] 3.725490 5.294118 5.686275 10.980392 8.039216 2.352941 3.529412 [8] 2.941176 2.156863 4.313725 0.980392 $mids [1] 1.29 1.31 1.33 1.35 1.37 1.39 1.41 1.43 1.45 1.47 1.49 $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 > if (par3 == FALSE) mybracket <- '[' else mybracket <- ']' > mynumrows <- (length(myhist$breaks)-1) > for (i in 1:mynumrows) { + a<-table.row.start(a) + if (i == 1) + dum <- paste('[',myhist$breaks[i],sep='') + else + dum <- paste(mybracket,myhist$breaks[i],sep='') + dum <- paste(dum,myhist$breaks[i+1],sep=',') + if (i==mynumrows) + dum <- paste(dum,']',sep='') + else + dum <- paste(dum,mybracket,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/2kxlf1203883226.tab") > > system("convert tmp/1q8i61203883226.ps tmp/1q8i61203883226.png") > > > proc.time() user system elapsed 0.623 0.157 0.737