Skip to content

Suggested feature for diverging_lollipop_plt() [with code] #151

Description

@ibecav

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status
In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions