You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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