Edit the strat.plot function, particularly the line text(tks1[1], pos, labels = colnames(d)[i], adj = c(0, 1), srt = 90, cex = cex.xlabel, xpd = NA)
where the rotation is hardcoded or ask the maintainer to make it an argument to the function so that you can change it on calling the plot function.
Uwe Ligges On 29.04.2010 20:08, Brendan Wiltse wrote:
Hi All, I am looking for help in rotating species titles produced using the strat.plot( ) function in the rioja package. This function produces a stratigraphic plot of paleoenvironmental data. Currently the titles of each species are plotted vertically while they are typically plotted at a 45 degree angle in other programs. Does anyone have any idea of how to rotates these titles? Below is an example plot (taken from the rioja help file) made the function. Cheers, Brendan Wiltse library(vegan) ## decorana data(RLGH) library(rioja) ## Not run: # create appropriately sized graphics window windows(width=12, height=7) # quartz() on Mac, X11 on linux ## End(Not run) # remove less abundant taxa mx<- apply(RLGH$spec, 2, max) spec<- RLGH$spec[, mx> 3] depth<- RLGH$depth$Depth #basic stratigraphic plot strat.plot(spec, y.rev=TRUE) #scale for percentage data strat.plot(spec, y.rev=TRUE, scale.percent=TRUE) # plot by sample depth strat.plot(spec, yvar = depth, y.rev=TRUE, scale.percent=TRUE, title="Round Loch of Glenhead", ylabel="Depth (cm)") ----- Brendan Wiltse Ph.D. Candidate Paleoecological Environmental Assessment and Research Lab Department of Biology Queen's University http://www.wix.com/wiltse/Personal-Homepage http://wiltse.redbubble.com [[alternative HTML version deleted]] ______________________________________________ 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.
______________________________________________ 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.