[R] Scale y-labels based on a value with 'lattice'
maillists at pp.inet.fi
Sun May 29 10:30:29 CEST 2016
Many thanks to Duncan and Jim for their quick replies.
27.05.2016, 01:08, Jim Lemon wrote:
> Hi Kimmo,
This 'dotchart' solution worked fine and I got what I wanted :) However,
I still wonder why the same idea does not work with lattice (e.g. using
27.05.2016, 08:51, Duncan Mackay wrote:
> If you want to change the cex of the labels see
Seem a bit more complex, but I'll give it a try.
> Possibly an easier way is to size the symbols
> I will use Jims data.frame to plot with lattice
> dotplot(Group.2 ~ x, data = kedf,
> scales = list(y = list(labels = kedf[,"Group2"], cex = = kedf[,"Freq"])))
This is also a nice idea to scale the dots. Thanks for pointing this out.
More information about the R-help