KopfLab / ggstackplot

R package for stacked ggplots
https://ggstackplot.kopflab.org
Other
0 stars 0 forks source link

it should be possible to control the axis switching better #7

Closed sebkopf closed 1 year ago

sebkopf commented 1 year ago

It should be possible to have the axes all on either side (left or right) and to mirror the alternating axes (i.e. start with top one on the right, then left, then right).

ggstackplot::ggstackplot(
    mtcars,
    x = mpg,
    y = c(wt, qsec, drat),
    color = c("#E41A1C", "#377EB8", "#4DAF4A")
)

54e33157-ba40-4776-82a8-f333fe559bc4

sebkopf commented 1 year ago

This is ready for documentation, who wants to take point? @KopfLab/ggstackplot-team

Explore the alternate_axes and switch_axes parameters

ggstackplot::ggstackplot(
  mtcars,
  x = mpg,
  y = c(wt, qsec, drat),
  color = c("#E41A1C", "#377EB8", "#4DAF4A"),
  alternate_axes = TRUE,
  switch_axes = TRUE
)
sebkopf commented 1 year ago

implemented in version 0.2.1