For instance what should I add to this expression:
xyplot(a~b, groups=abc, data=super,
scales=list(x=list(log=TRUE),y=list(log=TRUE)),
panel = panel.grid)
in order to have 100 instead of 10^2?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
latticeExtrapackage has a number of nifty functions for producing nicer labels for logarithmic axes. In your case, have a look atxscale.components.log10ticks.Here’s an example, taken from the help page, that shows basically what you want (although here it’s the y-axis that gets the labeling you’ll want on the x-axis):
EDITED, providing an additional example to reply to comments by the original poster