Skip to content
Prev 205907 / 398502 Next

How to control number of significant digits (figures) in y-axis?

Dear R users,
I encounter a problem regarding number of significant digits on y-axis.
Below is my basic code:
myplotkid<-xyplot(expected_offspringnumber~afr|decade,groups=SES,data1,
auto.key=list(space="right"),layout=c(9,1),xlab="",ylab="Offspring number",
aspect="fill",scales=list(x=list(draw=F)),strip=T)
there is only one y-axis in the left. However, number of offspring displayed
is in integer. How to display such numbers in decimal numbers, e.g. decimal
number with one digit after decimal point? Does someone have any idea to
fulfil this aim?
Thank you very much for kind help!
Best regards,
Jianghua