Does something like this work for you? You can vary the mgp parameter for placement of the label.
modelledprofile <- c(7.072289e-01, 2.625354e-01, 2.932886e-02, 8.986474e-04, 8.155270e-06, 2.537943e-08, 3.137954e-11, 1.729522e-14, 4.579875e-18, 6.069698e-22, 4.100828e-26, 1.423359e-30, 1.272139e-35, 5.449925e-46, 1.431925e-57, 1.629660e-70) depthnames <- c("0-0.5","0.5-1","1-1.5","1.5-2","2-2.5","2.5-3","3-3.5","3.5-4", "4-4.5","4.5-5","5-5.5","5.5-6","6-7","7-8","8-9","9-10") par(mar=c(4,5,1,1), mgp=c(4,1,0)) barplot(rev(modelledprofile),horiz=TRUE,xlim=c(0,1),col="cornflowerblue", names.arg=rev(depthnames),las=1,ylab="depth") On Nov 20, 2007 12:24 PM, <[EMAIL PROTECTED]> wrote: > Here's an example of my problem: > > modelledprofile <- c(7.072289e-01, 2.625354e-01, 2.932886e-02, 8.986474e-04, > 8.155270e-06, 2.537943e-08, 3.137954e-11, 1.729522e-14, 4.579875e-18, > 6.069698e-22, 4.100828e-26, 1.423359e-30, 1.272139e-35, 5.449925e-46, > 1.431925e-57, 1.629660e-70) > depthnames <- > c("0-0.5","0.5-1","1-1.5","1.5-2","2-2.5","2.5-3","3-3.5","3.5-4","4-4.5","4.5-5","5-5.5","5.5-6","6-7","7-8","8-9","9-10") > par(omi=c(0,0.5,0,0)) > barplot(rev(modelledprofile),horiz=TRUE,xlim=c(0,1),col="cornflowerblue",names.arg=rev(depthnames),las=1,ylab="depth") > > Thanks > > -- > This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com > http://www.opensubscriber.com/message/r-help@r-project.org/8030546.html > > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem you are trying to solve? ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.