[R-SIG-Finance] convert coordinate system to percentage

Enrico Schumann enricoschumann at yahoo.de
Sat Feb 28 09:57:33 CET 2009


i am not exactly sure what you want (or if this is really a finance
question), but maybe the following does what you want

# create some random data
x 	<- rnorm(20) * 0.05
y 	<- rnorm(20) * 0.05

plot(x, y)
par(ask = TRUE)
plot(x, y, xaxt = "n", yaxt = "n")

wo <- axTicks(1)
axis(1, at = wo, labels = paste(format(round(wo * 100, 1), nsmall = 1), "%",
sep = ""))

wo <- axTicks(2)
axis(2, at = wo, labels = paste(format(round(wo * 100, 1), nsmall = 1), "%",
sep = ""))



regards, enrico


-----Ursprüngliche Nachricht-----
Von: r-sig-finance-bounces at stat.math.ethz.ch
[mailto:r-sig-finance-bounces at stat.math.ethz.ch] Im Auftrag von Yana Roth
Gesendet: Freitag, 27. Februar 2009 19:47
An: r-sig-finance at stat.math.ethz.ch
Betreff: [R-SIG-Finance] convert coordinate system to percentage

Hello,
I would like to change coordinate system from metric to percentage in R when
I do scatter plot.
 
 
Thank you
Yana


      
	[[alternative HTML version deleted]]


No virus found in this incoming message.
Checked by AVG - www.avg.com

02/27/09
13:27:00



More information about the R-SIG-Finance mailing list