-
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
Add vertical or horizontal line to a ggscatterhist #176
Comments
Does ggpubr support this function? |
@juliechevalier, I updated ggscatterhist to support this function. You can find the version here: https://github.com/wenbostar/ggpubr/blob/master/R/ggscatterhist.R. |
Thanks ! It will be very helpful. |
The following enhancement required:
# returns a list of plots which can be modified
plots <- ggscaterhist()
# Display the arranged ggscatterhist
plots |
New printing method added in ggscatterhist #176
fixed now, thanks! library(ggpubr)
# Add vertical and horizontal line to a ggscatterhist
plots <- ggscatterhist(iris, x = "Sepal.Length", y = "Sepal.Width", print = FALSE)
plots$sp <- plots$sp +
geom_hline(yintercept = 3, linetype = "dashed", color = "blue") +
geom_vline(xintercept = 6, linetype = "dashed", color = "red")
plots Created on 2020-05-10 by the reprex package (v0.3.0.9001) |
This is not longer working. |
It is now. |
Now, it is not working. First, it is not possible to select |
I'd like to add a vertical and an horizontal line to my ggscatterhist. But the ggadd seems to not run properly with ggscatterhist, as I've tested it to add a point without any success.
So, is there a way to add such line to my plot where the code is :
I'd want to add a vertical line at a specific point of my xaxis through all the plot.
Thanks in advance for your help
Julie
The text was updated successfully, but these errors were encountered: