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

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -