powered by
This function sort a data frame by the first column and convert the second to a factor.
reorderDF(df)
An object of class gg.
gg
A data frame.
df <- data.frame(a = c(2, 4, 1, 3, 6), b = c(2, 8, 3, 19, 3)) reorderDF(df)
Run the code above in your browser using DataLab