This package has a function that takes the factor as input and reverses the order of input in the parameters.
library(devtools)
install_github("asadrana83/factRordering") library(factRordering)
See the following example to check how package can be used.
x <- factor(c(3,1,3,3,2,1,1,3,2)) levels(x) levels(fact_order_rev(x))
The expected results should reverse the output of the input parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.