Skip to content
Back to formatted view

Raw Message

Message-ID: <2E91E9C3-28B5-4FF5-A733-ABE435A7EAEB@comcast.net>
Date: 2011-01-13T04:42:15Z
From: David Winsemius
Subject: Rotated, Right-Justified Labels for Shortened Tick Marks
In-Reply-To: <2072099d-2ec9-44d3-8fb5-426ab516adf8@fm22g2000vbb.googlegroups.com>

On Jan 12, 2011, at 7:59 PM, dms wrote:

> Hello R-help,
>
> I'm trying to make a fairly simple plot axis that goes something like
> this:
>
> plot(-10:10,-10:10, yaxt='n')
> axis(side=2, las=1, hadj=1,  tck=-.01, cex.axis=.6)
>
> ...but as you can see, the labels are not close enough to the y-axis
> (where I want them... to save space for publication).

It's not clear what you mean by "labels" but if it is the numbers next  
to the ticks then you have already found the parameter needed, hadj.

plot(-10:10,-10:10, yaxt='n')
axis(side=2, las=1, hadj=0,  tck=-.01, cex.axis=.6)

>
> Can anybody help me figure out how to move these labels over the the
> right a bit?
>
> Thanks,


David Winsemius, MD
West Hartford, CT