kaijagahm / ygdpDashboard

Interactive dashboard for YGDP survey data
3 stars 0 forks source link

Diagonal plot labels #17

Closed kaijagahm closed 3 years ago

kaijagahm commented 4 years ago

Need to make the plot labels rotate only if they're going to bump into each other.

This is actually a somewhat complicated issue. On the ggplot side of things, we'd need to have some way of noticing whether or not the labels overlap. Can ggplot tell us this? Is this even handled on the ggplot side, or is it just a visual parameter that depends on the size of the plot produced?

On the Shiny/UI side, the size of the window is going to interact with the plot output it self to determine whether or not the labels overlap. I think Shiny definitely does have tools to have things happen depending on the window size, I just don't know if we can extend that to conditional behavior depending on plot labels.