-
Notifications
You must be signed in to change notification settings - Fork 11
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
gf_function without xlim argument #164
Comments
Hi, as I continue to test out This ggplot2 syntax produces the graph below:
I had expected this ggformula code to produce the same thing; but it doesn't:
In my various tests of |
Sorry for the slow response. Pending some testing, I think I may have this fixed. suppressPackageStartupMessages(library(ggformula))
test_function <- function(X){ 60.3605 + 0.6665*X}
gf_point(mpg ~ wt, data = mtcars, color = "steelblue") %>%
gf_function(test_function, xlim = c(10,40)) Created on 2023-08-30 with reprex v2.0.2 |
Randy, thanks! |
Hi @rpruim! Thanks for working on this. Could you let me know when the fix will be available (e.g., via github)? I tried reinstalling |
As always, just such a big fan of
ggformula
and all the development work you do! I've had several experiences where I'm thinking "it would be nice if there was..." and voila --ggformula
has already thought of it. Thanks!I've been playing more with
gf_function()
and there seems to be something odd about it when I'm just using vectors instead of data frames.If I leave the
xlim
argument out ofgf_function
, it won't depict the function.But if I put the
xlim
in, it will work as expected. Is there a way to getgf_function()
to work without having to setxlim
?If I use
gf_function()
on an x and y that is in a data frame (as in themtcars
example below), it works withoutxlim
.Thanks for considering!
The text was updated successfully, but these errors were encountered: