IMOS-AnimalTracking / remora

Rapid Extraction of Marine Observations for Roving Animals
https://imos-animaltracking.github.io/remora
GNU General Public License v3.0
13 stars 5 forks source link

[shinyReport("receivers")] Fix detections per hour plot when few detections are recorded #15

Open fmaron opened 3 years ago

fmaron commented 3 years ago

Is your feature request related to a problem? Please describe. The x-axis text of the detections per hour plot overlap when the project has a few detections:

Describe the solution you'd like Create a condition that when less than X detections are recorded the text on the x-axis should rotate

Describe alternatives you've considered Create a condition that when less than X detections are recorded the text on the x-axis should rotate. I have to change the reactive variable of the plot and create the conditions inside the variable.

Additional context Yuri's comment:

When we have few detections and they were next to each other in a station the date in the x axis gets on top of each other (screen shot). Maybe use different set-ups for the plots in case of few detections using "if" statements?

image
fjaine commented 3 years ago

Maybe rotate x-axis labels by 45 degrees to prevent overlap?