r - Sorting ggplot legends by factor (here: months) -
If you consider this code:
library (ggplot2) df & lt ; - As ("X", "Y") df $ date & lt; - as.factor (c ("April", "Gop (DF, AES (x = x, y = y, color = date)) + GOM_point (size = 3, size = 20) How can I sort my legend by a temporary sequence of months?
< df $ dates & lt; - with line: m <- c ("april", "may", "june", "august") df $ date & lt; - Factor (M, Level = M)
Comments
Post a Comment