-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
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
ggline with numeric x-axis #35
Comments
New argument library(ggpubr)
df2 <- data.frame(supp=rep(c("VC", "OJ"), each=3),
dose=rep(c(0.5, 1, 2),2),
len=c(6.8, 15, 33, 4.2, 10, 29.5))
ggline(df2, x = "dose", y = "len",
color = "supp", numeric.x.axis = TRUE)
|
I'm trying to do something similar: I've got data of say 10 subjects and 5 average measurements of each person, arranged in long format (so columns are ID, measurement bin, measurement value in that bin). I want to plot the data from all subjects together, as well as the average. I've tried to plot it with ggerrorplot like this: |
Hi,
Thanks for this great package. I am trying to use ggline where x-axis is time (time <- c(0,1,3,6,24)) so I need the x-axis values to be treated as numeric, not categorical. However, ggline seems to by default convert x-axis to categorical values. Is there a way to stop it from converting numeric x-axis values to categorical?
Thanks.
The text was updated successfully, but these errors were encountered: