Skip to content
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

Change Legend Text #69

Open
linem7 opened this issue Apr 20, 2023 · 0 comments
Open

Change Legend Text #69

linem7 opened this issue Apr 20, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@linem7
Copy link

linem7 commented Apr 20, 2023

Hello Jacob, I have a question about changing the legend of geom_segment(). Specifically, I want to change the legend text from "Range of observed data" to something else. I used the code below, but it didn't work. Do you know other easy way to do so? I would really appreciate any ideas or suggestions you have. Thank you!

object <- johnson_neyman(model = fit, pred = Murder,
               modx = Illiteracy)
object$plot + geom_segment(aes(x = 0.5, xend = 2.8, y = 10, yend = 10,
linetype = "range of moderate variable"),
lineend = "square", size = 1.25)
@linem7 linem7 added the enhancement New feature or request label Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant