search for: td16235166

Displaying 1 result from an estimated 1 matches for "td16235166".

2008 Apr 29
2
ggplot2: labels and breaks order does not match and I can't use scale_fill_identity
...ot;identity",position="dodge") f1 contains quite a few levels and the plot is really quite difficult to read when the order of bars on the graph and on the legend does not match. This problem has been discussed recently here: http://www.nabble.com/ggplot2---legend-for-fill-coulours-td16235166.html and the solution was to use scale_fill_identity to manually define the order of both the breaks and the labels. This is however unsuitable for me (at least in the unmodified form), as this is part of a script that does not know in advance how many levels there arae in f1. Is there a way round...