Re: [R] Order axis by number of entries in lattice plot

2019-11-05 Thread Luigi Marongiu
Thank you. the factor approach worked all right. Thank you for Likert also: I already used it but here I wanted to run with lattice only. Best regards On Mon, Nov 4, 2019 at 6:57 PM Richard M. Heiberger wrote: > > ## The likert function would work well for this example. > ## Continuing from your

Re: [R] Order axis by number of entries in lattice plot

2019-11-04 Thread Richard M. Heiberger
## The likert function would work well for this example. ## Continuing from your example ## install.packages("HH") ## if necessary library(HH) likert(Family ~ Normal+Tumour+Metastasis, data = df, main = "likert, data-order, ReferenceZero=0\nDuplicates your example",

Re: [R] Order axis by number of entries in lattice plot

2019-11-04 Thread Duncan Murdoch
On 04/11/2019 9:25 a.m., Duncan Murdoch wrote: On 04/11/2019 8:31 a.m., Luigi Marongiu wrote: Dear all, I am plotting some values with lattice barchart: the y-axis is automatically ordered alphabetically; is it possible to order the entries by number, so that the 'larger' histograms would be at

Re: [R] Order axis by number of entries in lattice plot

2019-11-04 Thread Duncan Murdoch
On 04/11/2019 8:31 a.m., Luigi Marongiu wrote: Dear all, I am plotting some values with lattice barchart: the y-axis is automatically ordered alphabetically; is it possible to order the entries by number, so that the 'larger' histograms would be at the top of the plot? This is a working example

[R] Order axis by number of entries in lattice plot

2019-11-04 Thread Luigi Marongiu
Dear all, I am plotting some values with lattice barchart: the y-axis is automatically ordered alphabetically; is it possible to order the entries by number, so that the 'larger' histograms would be at the top of the plot? This is a working example ``` library(lattice) Family = c("Adenoviridae",