Try this; axis(2, at=z, labels=sprintf('%d%%', z * 100), col.axis = "blue", cex.axis=0.7)
On Tue, Apr 27, 2010 at 1:02 PM, Jeevan Duggempudi <jeev...@gmail.com>wrote: > Hello, > > > > I have used plot function to graph two variables and would like to change > the Y axis labels to % format. So a 0.2 on Y Axis needs to be represented > as > 20%. I tried to use the following but am getting a syntax error. could you > point me to the mistake in this? > > > > axis(2, at=z, labels=format(z,%), col.axis = "blue", cex.axis=0.7) > > > > Thanks, > > Jeevan > > [[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. > > -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O [[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.