On May 16, 2014, at 8:59 AM, Hurr wrote: > Sorry I didn't catch-on to xlab="" earlier. > The following code works preliminarily, > now I need to add an axis-title to the added axis. > I don't see axistitle in axis command selections.
That's because it is part of the 'title' function. -- David. > > install.packages('plotrix') > library(plotrix) > horAxisLims=c(0,7213) > verData=c(1,365,809,1252,1753,2191,2922,3409,3896,4383,4819,5255,5691,6128,6564,7000) > #not fussy > horData=c(1,300,800,1200,1700,2100,2900,3400,3800,4300,4800,5200,5600,6100,6500,7000) > #not at tics > horTicLocs=c(1,365,809,1252,1753,2191,2922,3409,3896,4383,4819,5255,5691,6128,6564,7000) > horLabels=c('1Yr','1Da','10.8Hr','7Hr','5Hr','4Hr','3Hr','2.57Hr','2.25Hr','2Hr','1.82Hr','1.67Hr','1.54Hr','1.43Hr','1.34Hr','1.25Hr') > plot(horData,verData,xaxt='n',xlim=horAxisLims,xlab="") > axis(1,tick=TRUE,at=horTicLocs,labels=rep("",length(horLabels))) > staxlab(1,at=horTicLocs,labels=horLabels,srt=90,adj=c(1,0)) > par(mar=c(8,4,4,2)+.1) #c(bot,lef,top,rit); default:c(5,4,4,2)+.1 > axis(1,labels=TRUE,tick=TRUE,line=3.5,at=NULL) > > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/Second-axis-on-bottom-of-graph-tp4690696p4690716.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. David Winsemius Alameda, CA, USA ______________________________________________ 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.