-
Notifications
You must be signed in to change notification settings - Fork 43
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
tip_length in aes #30
Comments
Hey, thanks for the suggestion. I have implemented the feature and it is available when you install from github: annotation_df <- data.frame(color=c("E", "H"),
start=c("Good", "Good"),
end=c("Very Good", "Good"),
y=c(max(diamonds$carat), max(diamonds$carat)),
label=c("Comp. 1", "Comp. 2"),
tip_length = c(0.2,0))
annotation_df
ggplot(diamonds, aes(x=cut, y=carat)) +
geom_boxplot() +
geom_signif(data=annotation_df,
aes(xmin=start, xmax=end, annotations=label, y_position=y, tip_length = tip_length),
textsize = 3, vjust = -0.2,
manual=TRUE) +
facet_wrap(~ color) +
ylim(NA, 5.3) |
Thanks! |
This still leaves a small dot. Any way to get rid of that? |
Oh you are right... |
It's strange: |
Would it be possible to set the tip_length in the
aes
?I am working on some time series data. So making a custom dataframe with the annotations could be nice.
Since I am comparing two different time series at same time/x it would be nicer to remove the tip and just have the p-value/annotation.
Here is an example (not time series though, just as an example for this specific problem):
The text was updated successfully, but these errors were encountered: