[R] lattice: how to format axis labels?
Wladimir Eremeev
wl at eimb.ru
Wed Jul 23 14:17:09 CEST 2003
Dear james,
jhcc> check out 'sprintf' for formating in a specific way.
This will not solve the problem.
I will have to specify the argument like labels=(...).
I would like to avoid it.
I wonder if there a key or option to make automatically appearing
labels be formatted in the mentioned way.
I haven't found it in the documentation.
=====================================================
jhcc> I draw graphics with xyplot() function.
jhcc> Labels on the y axis are appearing as follows: "1.5, 1, 0.5, 0"
jhcc> I'd like to have them to be "1.5, 1.0, 0.5, 0.0", i.e. with fixed
jhcc> number of digits after the dot (one in this case).
jhcc> Is there any way to do this without implicit specifying labels?
--
Best regards
Wladimir Eremeev mailto:wl at eimb.ru
==========================================================================
Research Scientist Leninsky Prospect 33,
Space Monitoring & Ecoinformation Systems Sector, Moscow, Russia, 119071,
Institute of Ecology, Phone: (095) 135-9972;
Russian Academy of Sciences Fax: (095) 954-5534
More information about the R-help
mailing list