Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Can I Reverse Series Order in a Chart Legend without Changing the Series order i

ID: 3565261 • Letter: C

Question

Can I Reverse Series Order in a Chart Legend without Changing the Series order in the Chart (or vice-versa)?

I'm plotting several series in a stacked chart. This first series appears on the bottom of the stack, and the last series on the top of the stack. Thiis is how I want the chart. However, the first series is listed last in the legend. I want to list the first series first in the legend. I know I can go to select aand reorder thee legend entries there, but if I do this, it will also flip the order of the stack (and in this case, that just wouldn't look rright).. Is there a way to change either the legend order of the stack order without changing the other???

Explanation / Answer

Changing the Default Order of Legend Labels and Stacking of Data

MARCH 23, 2010

tags: ggplot2, labels, legend, stacking

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote