Hi, I have added a second y-axis via axis() to a plot. Then I tried to add an y axis title. But the axis() function seems to have no argument like ylab. and if I add a title with title() the text is centered at the first axis, not the second defined one. Is there a way to add an axis-title that orientates it's position at the last defined axis?
There is an example in: library(zoo) example(plot.zoo) See ?plot.zoo On Fri, Feb 13, 2009 at 6:19 PM, J?rg Gro? <joerg at licht-malerei.de> wrote:> Hi, > > I have added a second y-axis via axis() to a plot. > Then I tried to add an y axis title. > > But the axis() function seems to have no argument like ylab. > > and if I add a title with title() the text is centered at the first axis, > not the second defined one. > > > Is there a way to add an axis-title that orientates it's position at the > last defined axis? > > ______________________________________________ > R-help at 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. >
?mtext On Sat, 2009-02-14 at 00:19 +0100, J?rg Gro? wrote:> Hi, > > I have added a second y-axis via axis() to a plot. > Then I tried to add an y axis title. > > But the axis() function seems to have no argument like ylab. > > and if I add a title with title() the text is centered at the first > axis, not the second defined one. > > > Is there a way to add an axis-title that orientates it's position at > the last defined axis? > > ______________________________________________ > R-help at 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.-- Alexandre Swarowsky Soils and Biogeochemistry Graduate Group University of California at Davis One Shields Avenue Davis CA 95618 Office: (530)752-4131 cell: (530)574-3028