[EMAIL PROTECTED] wrote:
...
I would like the axes to be 0,2,4,6,8,10 with a *10^5 on
the right hand side.
Is there a simple command for this?
This post so interested me that I wrote the following function:
axis.mult-function(side=1,at=NULL,labels,mult=1,mult.label,mult.line,
Marc == Marc Schwartz (via MN) [EMAIL PROTECTED]
on Wed, 28 Dec 2005 15:46:37 -0600 writes:
Marc On Wed, 2005-12-28 at 20:15 +,
Marc [EMAIL PROTECTED] wrote:
Dear All,
Apologies for this simple question and thanks in advance
for any help given.
On Thu, 2005-12-29 at 22:06 +0100, Martin Maechler wrote:
Marc == Marc Schwartz (via MN) [EMAIL PROTECTED]
on Wed, 28 Dec 2005 15:46:37 -0600 writes:
Marc On Wed, 2005-12-28 at 20:15 +,
Marc [EMAIL PROTECTED] wrote:
Dear All,
Apologies for this simple
Dear All,
Apologies for this simple question and thanks in advance for any help given.
Suppose I wanted to plot 1 million observations and produce the command
plot(rnorm(100))
The labels of the xaxis are 0, e+00 2 e+05 etc. These are clearly not very
attractive (The plots are for a PhD.
Here is one way to do it with a smaller set of data, but the 'range' is the
same:
x - c(1,1000,100)
y - pretty(range(x))
y
[1] 0e+00 2e+05 4e+05 6e+05 8e+05 1e+06
plot(x,1:3,xaxt='n', xlab=X * 10^5)
axis(1, at=y, labels=y/10)
On 12/28/05, [EMAIL PROTECTED] [EMAIL PROTECTED]
Try this:
x - c(1, 1e6); y - 0:1
par(mar = c(5, 4, 4, 5) + 0.1) # make room at the right
plot(x, y, axes = FALSE)
box()
axis(2)
axis(1, at = 0:5 * 2 * 1e5, labels = 0:5 * 2)
mtext(text = expression(phantom(0)%*%10^5),
side = 1, line = 1, at = 11.0 * 1e5)
Peter Ehlers
[EMAIL PROTECTED]
On Wed, 2005-12-28 at 20:15 +, [EMAIL PROTECTED] wrote:
Dear All,
Apologies for this simple question and thanks in advance for any help
given.
Suppose I wanted to plot 1 million observations and produce the
command
plot(rnorm(100))
The labels of the xaxis are 0, e+00 2 e+05