而如果有多个映射时,Legend 出现的顺序是不固定的。如果想固定或调整多个 legend的顺序,则可以通过函数逐个指定,如下面代码所示: 结果图比较效果如下,仔细看 Legend 和代码中的和。
There’s a reason ggplot2 is one of the most popular add-on packages for R: It’s a powerful, flexible and well-thought-out platform to create data visualizations you can customize to your heart’s ...