Skip to content

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

2 messages · Duncan Mackay, Arnaud Blaser

#
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:
#
Dear Duncan,

"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."

I think you were right. It worked and I does seem to be the simplest 
option. Many thanks !

Regards,
Arnaud

Le 25.07.2013 00:41, Duncan Mackay a ?crit :