daroczig / CEU-R-intro

Data Analysis 1a: Foundation of Data management in R @ CEU
35 stars 62 forks source link

Last problem in Data Camp hwk #20

Closed nadezhdagesheva closed 6 years ago

nadezhdagesheva commented 6 years ago

Dear professor Daroczi,

Would you please clarify what does the condition "Reorder the factor levels in this new object by the related air_time" in the "A complex example" problem exactly means? I tried with the setorder command as a separate step, also with the as.factor() command in the ggplot(..., aes(***)), but there still seems to be an error with the barplot. As a hint from Data Camp I get "Have you tried with factor()?".

Many thanks, Nadezhda Gesheva

daroczig commented 6 years ago

I cannot help more at this time other than suggesting taking that hint seriously and also check my answers at #19 and #21

Note: if you get stuck and cannot solve it after all, it's ~10% of the overall homework, so not that big deal