-
Notifications
You must be signed in to change notification settings - Fork 161
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
R^2 as option in stat_cor() #32
Comments
I am totally agree ! |
kassambara
added a commit
that referenced
this issue
Aug 11, 2018
Now, R2 is supported. library("ggpubr")
# Default output
ggscatter(mtcars, x = "wt", y = "mpg", add = "reg.line") +
stat_cor(label.x = 3) # Use R2 instead of R
ggscatter(mtcars, x = "wt", y = "mpg", add = "reg.line") +
stat_cor(
aes(label = paste(..rr.label.., ..p.label.., sep = "~`,`~")),
label.x = 3
) |
Is it possible to achieve this but with the R2 and p value on separate lines? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I like the simplicity of quickly adding the correlation coefficient and p-value to a scatter plot produced with ggscatter(). It would be nice to be able to select the R^2 value instead of r as a method in stat_cor() .
The text was updated successfully, but these errors were encountered: