R version 2.6.2 (2008-02-08) 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(452.3,359.8,771,411.2,431.8,411.2,791.6,462.6,82.4,462.6,822.4,565.4,555.1,411.2,719.6,719.6,668.2,514,411.2,873.8,565.4,359.8,411.2,483,750.4,801.8,514,514,565.4,637.4,565.4,452.3,699,616.8,822.4,411.2,514,771) > x <- c(668.2,514,1033,431.8,616.8,514,1028,668.2,1028,616.8,1033,616.8,668.2,668.2,976.6,822.4,1033,616.8,565.4,1028,668.2,668.2,565.4,688.8,1028,952.2,616.8,616.8,719.6,822.4,719.6,637.4,822.4,771.1,1033,514,616.8,1028) > par5 = 'Prosome Length' > par4 = 'Total Length' > par3 = 'TRUE' > par2 = 'grey' > par1 = 'grey' > ylab = '' > main = 'Back to Back Histogram' > 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/rcomp/tmp/1n6cx1210573674.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/1n6cx1210573674.ps tmp/1n6cx1210573674.png") > > > proc.time() user system elapsed 0.933 0.157 1.230