R version 2.7.2 (2008-08-25) Copyright (C) 2008 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. > y <- c(501852,500983,492092,471353,503961,519240,427730,426894,458031,512057,604919,589011,526981,450468,472746,395490,476078,545870,415570,380319,383600,505737,495066,472665,480579,536266,561722,475908,523232,507509,399927,466682,421751,442511,546678,499944,495574,524944,568106,484506,512235,523179,462411,685872,635902,573599,668826,520868,555680,727941,516959,489975,559687,630947,473994,583802,553061,604700,708101,617053,819858,736520,567696,666627,701749,647394,610231,777555,901319,707164,782859,652556,676064,707665,561515,645794,623482,673401,544890,605125,607570,578585,647408,574998,507468,695738,562270,585810,516493,691302,549560,496171,561565,671145,578514,623296,587012) > x <- c(1671,1385,1632,1313,1300,1431,1398,1198,1292,1434,1660,1837,1455,1315,1642,1069,1209,1586,1122,1063,1125,1414,1347,1403,1299,1547,1515,1247,1639,1296,1063,1282,1365,1268,1532,1455,1393,1515,1510,1225,1577,1417,1224,1693,1633,1639,1914,1586,1552,2081,1500,1437,1470,1849,1387,1592,1589,1798,1935,1887,2027,2080,1556,1682,1785,1869,1781,2082,2570,1862,1936,1504,1765,1607,1577,1493,1615,1700,1335,1523,1621,1539,1637,1523,1418,1819,1594,1359,1261,1722,1407,1380,1642,1681,1542,1704,1431) > par5 = 'totale oppervlakte' > par4 = 'aantal gebouwen' > par3 = 'TRUE' > par2 = 'grey' > par1 = 'grey' > ylab = '' > main = 'Back to Back Histogram' > #'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!) > if (par3 == 'TRUE') par3 <- TRUE > if (par3 == 'FALSE') par3 <- FALSE > library(Hmisc) Attaching package: 'Hmisc' The following object(s) are masked from package:base : format.pval, round.POSIXt, trunc.POSIXt, units > z <- data.frame(cbind(x,y)) > names(z) <- list(par4,par5) > postscript(file="/var/www/html/freestat/rcomp/tmp/1ggoe1224526708.ps",horizontal=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > out <- histbackback(z, probability=par3, main = main, ylab = ylab) > barplot(-out$left, col=par1, horiz=TRUE, space=0, add=TRUE, axes=FALSE) > barplot(out$right, col=par2, horiz=TRUE, space=0, add=TRUE, axes=FALSE) > dev.off() null device 1 > > system("convert tmp/1ggoe1224526708.ps tmp/1ggoe1224526708.png") > > > proc.time() user system elapsed 1.236 0.224 1.310