hadleyd2 / group_09-1

Repository for Daniel Hadley STAT 547M project
MIT License
0 stars 2 forks source link

Dynamically Change Size of Density Plot #11

Closed hadleyd2 closed 4 years ago

hadleyd2 commented 4 years ago

From feedback on milestone 05, it was suggested that I change the size of the density plot for the Data Exploration portion of my dashboard app depending upon the group selection.

My proposed solution to this problem is to create separate tabs in the dashboard for Data Exploration and Data Analysis. Then, I can either increase the plot size for all density plots or make the size dynamic depending upon the number of groups in the grouping variable selection dropdown.

The benefit of using tabs is that increasing the plot size will not shrink or shift the Data Analysis portion of the dashboard.

hadleyd2 commented 4 years ago

Revisiting this issue, I believe I misread the TA's comment. On second reading, I believe the TA was referring to how the longer x-axis labels essentially eat into the allotted space for the plot.

To remedy this situation, I created tabs for Welcome/instructions, Data Exploration, and Data Analysis. This helps alleviate some of the crowding that was taking place. Then, I ended up removing the x-axis labels from the violin plots altogether and opted for using a color coded legend instead. Thus, the vertical space and the horizontal space allotted to the plot is not affected by the grouping variable.