ggplot2 histogram legend too large
问题 I'm pretty happy with the results I'm getting with R. Most of my stacked histogram plots are looking fine, e.g. and However, I have a few that have so many categories in the legend that the legend is crowing out the plot, e.g. How can I fix this? Here is my plot.r, which I call on the command line like this RScript plot.r foo.dat foo.png 1600 800 foo.dat account,operation,call_count,day cal3510,foo-method,1,2016-10-01 cra4617,foo-method,1,2016-10-03 cus4404,foo-method,1,2016-10-03 hin4510,foo