Skip to content

graph question

2 messages · Dean Sonneborn, Brian Ripley

#
I would like to produce a graph which plots a log scale variable on the 
y-axis but have the tick marks on the y-axis  be the non log transformed 
values that are round like .5, 1, 2, 3, 4 etc. Has anyone done something 
like this in the past? How did you implement it in the code?

Thanks,
Dean
#
On Tue, 12 Oct 2004, Dean Sonneborn wrote:

            
plot(c(0.5, 5), 1:2, log="x", xaxt="n")
axis(1, at=c(0.5, 1:4))

Take a look at `An Introduction to R' and ?axis.

BTW, please try to use a more precise subject line. Something like
`Adding a custom axis to log-scale plots'?