How to create a custom geom? #692
Unanswered
hebertodelrio
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to create a custom geom, but I do not seem to figure out how to do it. For example, the following R code creates a geom which allows to draw two parallel linear models. This cannot be accomplished with geom_smooth(aes(x='some x data', y='some y data', hue='some hue data')), since this will create two linear models with y-intercept depending on the hue data, as well as the slope.
Any help is welcomed.
geom_parallel_slopes.txt
Beta Was this translation helpful? Give feedback.
All reactions