MarioniLab / miloDE

Framework for sensitive DE testing (using neighbourhoods)
Other
57 stars 2 forks source link

edge_width cannot be changed in plot_milo_by_single_metric #32

Closed mihem closed 8 months ago

mihem commented 1 year ago

Just a small bug here:

https://github.com/MarioniLab/miloDE/blob/8803302dd67c371b638340c10d09a2dea6eb8152/R/plotting_functions.R#L181

I think it should be

scale_edge_width(range = edge_width)

At least in my case chaning edge_width does not do anything. A workarround is overwriting this parameter via

plot_milo_by_single_metric(milo_obj ....) +
  ggraph::scale_edge_width(range = c(0.01, 0.1))
amissarova commented 8 months ago

@mihem thanks for pointing this out, its fixed now