We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The current default of ggerrorplot() is to always treat x as a factor.
ggerrorplot()
The option numeric.x.axis should be added; logical value. If TRUE, x axis will be treated as numeric. Default is FALSE.
numeric.x.axis
The text was updated successfully, but these errors were encountered:
new argument numerix.x.axis added #280
1d6957d
numeric.x.axis added into the core options #280
26e1bdf
suppressPackageStartupMessages(library(ggpubr)) # Demo data mi_df <- data.frame( "month" = as.numeric(rep(c(0,1,2,12,15,48),30)) , "sust" = as.factor(rep(c(rep(c("A","B"), each=6)), 15)), "vble" = as.numeric(rnorm(180))) # Error plot: x-axis treated as factor (default) ggerrorplot( mi_df, x = "month", y = "vble", desc_stat = "mean_sd", color = "sust", palette = c("black","grey"), title= "smt", ylab= "vble", position = position_dodge(0.3) )
# Using numeric x axis: numeric.x.axis = TRUE ggerrorplot( mi_df, x = "month", y = "vble", desc_stat = "mean_sd", color = "sust", palette = c("black","grey"), title= "smt", ylab= "vble", position = position_dodge(0.3), numeric.x.axis = TRUE )
Created on 2020-05-24 by the reprex package (v0.3.0.9001)
Sorry, something went wrong.
ggbarplot
No branches or pull requests
The current default of
ggerrorplot()
is to always treat x as a factor.The option
numeric.x.axis
should be added; logical value. If TRUE, x axis will be treated as numeric. Default is FALSE.The text was updated successfully, but these errors were encountered: