Is your feature request related to a problem? Please describe.
Right now you are relying on the user to do something like convert to a z score so that the center point is zero
Describe the solution you'd like
Would be nice if you calculated the mean so they could plot in raw units either as an option or by default
Describe alternatives you've considered
How about some simple code like this...
mean_y <- data_tbl %>% summarise(mean({{ y_axis_var }})) %>% deframe()
and
ggplot2::geom_segment( ggplot2::aes(y = mean_y, x = {{ x_axis_var }}, yend = {{ y_axis_var }}, xend = {{ x_axis_var }}), color = "black") +
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
Right now you are relying on the user to do something like convert to a z score so that the center point is zero
Describe the solution you'd like
Would be nice if you calculated the mean so they could plot in raw units either as an option or by default
Describe alternatives you've considered
How about some simple code like this...
mean_y <- data_tbl %>% summarise(mean({{ y_axis_var }})) %>% deframe()and
ggplot2::geom_segment( ggplot2::aes(y = mean_y, x = {{ x_axis_var }}, yend = {{ y_axis_var }}, xend = {{ x_axis_var }}), color = "black") +Additional context
Add any other context or screenshots about the feature request here.