i have a dataframe
df <-data.frame(apport=c("Min 1", "Min 2", "Org 2017","Org 2017","Org 2017",
"Org 2017","Org 2017","Org 2017","Org 2017","Org 2017",
"Org 2017","Org 2017"), periode_ap=c("Mai_32","Jui_34",
"Avr_30", "Avr_31","Avr_31","Avr_31","Mai_32","Mai_32","Mai_32",
"Mai_33","Mai_33","Mai_33"))
I made a ggplot
ggplot(df, aes(x=periode_ap, color=apport))+geom_density()
but i want to have in the x axis a graduation that i have in this list :
list<-c("Jan_0", "Jan_1", "Fev_2", "Fev_3","Mar_4", "Mar_5", "Avr_6", "Avr_7", "Mai_8", "Mai_9", "Jui_10", "Jui_11", "Jul_12", "Jul_13", "Aou_14", "Aou_15", "Sep_16", "Sep_17", "Oct_18", "Oct_19", "Nov_20","Nov_21", "Dec_22", "Dec_23", "Jan_24", "Jan_25", "Fev_26", "Fev_27", "Mar_28", "Mar_29", "Avr_30","Avr_31", "Mai_32", "Mai_33", "Jui_34", "Jui_35", "Jul_36", "Jul_37", "Aou_38",
"Aou_39", "Sep_40", "Sep_41", "Oct_42", "Oct_43", "Nov_44", "Nov_45", "Dec_46", "Dec_47")
to have a periode from Jan_0 until Dec_47 instead of Avr_30 until Jui_34 that I have in my data, if you can help me , thanks


scale_x_discrete(labels = list)? - Ronak Shah