[R] How to force x AND y log scale in xyplot?
Thomas P. Colson
tpcolson at ncsu.edu
Fri Oct 13 00:42:15 CEST 2006
the following plots a log-log plot of cumulative drainage area, but the
axis labels are 10^-1, ...10^5, so forth.
xyplot(white$rank.PRank~white$basin_area,scales=list(log=TRUE),xlab="Drainag
e Area m^2",ylab="P(A>A*)")
When I try this, I get the desired labels, sort of: the x axis contains
"100, 1000,10000" and then "1e+05, 1e+06"
xyplot(white$rank.PRank~white$basin_area,scales=list(y=list(log=TRUE,at=c(.0
001,.001,.01,.1,1)),x=list(log=TRUE,at=c(10,100,1000,10000,100000,1000000)))
,xlab="Drainage Area m^2",ylab="P(A>A*)")
How to make those last two x-axis labels "conform"?
Thanks.
More information about the R-help
mailing list