You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am plotting my response variables by categorical treatments that are ordered low to high. When I plot in Flexplot, the axis is ordered from high values to low values of the response variable rather than by the factor levels as in this example with the iris data
test = flexplot(Sepal.Length~Species, data = iris, method = "gamma", se = F, jitter = c(0.2,0))
test
I assume this is an intentional feature but it would help my brain process the patterns if the the treatment groups were in the order I specify in the factor levels. I tried to output the ggplot code with plot.string but was not successful at getting that code to work.
Is there a way to force flexplot() to use factor levels? I don't see it in the options for the function.
Thanks so much.
Maile
The text was updated successfully, but these errors were encountered:
Hi There -
I am plotting my response variables by categorical treatments that are ordered low to high. When I plot in Flexplot, the axis is ordered from high values to low values of the response variable rather than by the factor levels as in this example with the iris data
library(forcats)
library(dplyr)
library(magrittr)
library(flexplot)
data(iris)
iris<-iris %>%
mutate(Species = forcats::fct_relevel(Species, c("versicolor", "setosa", "virginica")))
test = flexplot(Sepal.Length~Species, data = iris, method = "gamma", se = F, jitter = c(0.2,0))
test
I assume this is an intentional feature but it would help my brain process the patterns if the the treatment groups were in the order I specify in the factor levels. I tried to output the ggplot code with plot.string but was not successful at getting that code to work.
Is there a way to force flexplot() to use factor levels? I don't see it in the options for the function.
Thanks so much.
Maile
The text was updated successfully, but these errors were encountered: