Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.

Switch to horizontal orientation by default #116

Open
sethaxen opened this issue Mar 20, 2020 · 1 comment
Open

Switch to horizontal orientation by default #116

sethaxen opened this issue Mar 20, 2020 · 1 comment

Comments

@sethaxen
Copy link
Member

I think a horizontal default orientation makes more sense than a vertical one. There are several reasons for this:

  • densities and histograms are currently drawn horizontally. This is the primary orientation people are used to seeing these in, so they're probably easier to interpret this way. Related to Plot histograms like violin plots #111, I think plotting densities and violins should be self-consistent.
  • often one will want to plot many categories. Horizontal orientation is more friendly with this, because one can scroll down to see additional categories, and category names can be stacked more compactly.

The counterpoint is that for plots that use the SampleBased conversion trait, where x indicates the categories and y indicates the samples, it's nice that x maps to the x-axis and y maps to the y-axis.

@piever
Copy link
Member

piever commented Mar 21, 2020

Maybe we could just make it themable? That is, we add some attribute to the theme so that you can do set_theme!(samplebased_orientation = :horizontal) and all your subsequent boxplot, violin plots, etc. are horizontal by default?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants