[R] Rotating Titles

Wiltse wiltseb at gmail.com
Thu Apr 29 20:11:20 CEST 2010


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
-- 
View this message in context: http://r.789695.n4.nabble.com/Rotating-Titles-tp2075978p2075978.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list