Skip to content
Prev 327382 / 398502 Next

x-axis (categorial variable) ordering with xyplot function (lattice package)

forgot to cc to list

Hi

For an xyplot you have not got the proper coding 
for the x value which should be numeric.

If you want to make a plot of the style of xyplot 
a numerical index of the country is needed and 
then use the scales argument to annote the labels with the country.
Do you want multiple panels ?

A self contained dataset via dput would help elicit further information.

Have a look at the outer and related arguments as 
well as the group arguments. A combined index for 
regions with countries may be necessary.

Regards

Duncan

Duncan Mackay
Department of Agronomy and Soil Science
University of New England
Armidale NSW 2351
Email: home: mackay at northnet.com.au
At 00:17 25/07/2013, you wrote: