R version 2.15.2 (2012-10-26) -- "Trick or Treat" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-pc-linux-gnu (32-bit) 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(32,51,42,41,46,47,37,49,45,47,49,33,42,33,53,36,45,54,41,36,41,44,33,37,52,47,43,44,45,44,49,33,43,54,42,44,37,43,46,42,45,44,33,31,42,40,43,46,42,45,44,40,37,46,36,47,45,42,43,43,32,45,45,31,33,49,42,41,38,42,44,33,48,40,50,49,43,44,47,33,46,0,45,43,44,47,45,42,33,43,46,33,46,48,47,47,43,46,48,46,45,45,52,42,47,41,47,43,33,30,49,44,55,11,47,53,33,44,42,55,33,46,54,47,45,47,55,44,53,44,42,40,46,40,46,53,33,42,35,40,41,33,51,53,46,55,47,38,46,46,53,47,41,44,43,51,33,43,53,51,50,46) > x <- c(53,86,66,67,76,78,53,80,74,76,79,54,67,54,87,58,75,88,64,57,66,68,54,56,86,80,76,69,78,67,80,54,71,84,74,71,63,71,76,69,74,75,54,52,69,68,65,75,74,75,72,67,63,62,63,76,74,67,73,70,53,77,77,52,54,80,66,73,63,69,67,54,81,69,84,80,70,69,77,54,79,30,71,73,72,77,75,69,54,70,73,54,77,82,80,80,69,78,81,76,76,73,85,66,79,68,76,71,54,46,82,74,88,38,76,86,54,70,69,90,54,76,89,76,73,79,90,74,81,72,71,66,77,65,74,82,54,63,54,64,69,54,84,86,77,89,76,60,75,73,85,79,71,72,69,78,54,69,81,84,84,69) > par5 = 'Belonging_final' > par4 = 'Belonging' > par3 = 'TRUE' > par2 = 'grey' > par1 = 'grey' > ylab = ' ' > main = 'Back to Back Histogram' > par5 <- 'Belonging_final' > par4 <- 'Belonging' > par3 <- 'TRUE' > par2 <- 'grey' > par1 <- 'grey' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: root > #To cite this work: Wessa P., (2012), Back to Back Histogram (v1.0.4) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_backtobackhist.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > # > if (par3 == 'TRUE') par3 <- TRUE > if (par3 == 'FALSE') par3 <- FALSE > library(Hmisc) Loading required package: survival Loading required package: splines Hmisc library by Frank E Harrell Jr Type library(help='Hmisc'), ?Overview, or ?Hmisc.Overview') to see overall documentation. NOTE:Hmisc no longer redefines [.factor to drop unused levels when subsetting. To get the old behavior of Hmisc type dropUnusedLevels(). Attaching package: 'Hmisc' The following object(s) are masked from 'package:survival': untangle.specials 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/fisher/rcomp/tmp/1eovc1353249083.ps",horizontal=F,onefile=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 > > try(system("convert tmp/1eovc1353249083.ps tmp/1eovc1353249083.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.116 0.174 1.271