ctmm-initiative / ctmmweb

Web app for analyzing animal tracking data, built upon ctmm R package
http://biology.umd.edu/movement.html
GNU General Public License v3.0
32 stars 21 forks source link

Home range value bar plot #69

Open NoonanM opened 6 years ago

NoonanM commented 6 years ago

After updating the app, I've noticed that the home range plots don't seem to be rendering.

xhdong-umd commented 6 years ago

I didn't see problem in my end. Can you try the latest version and check if there is error message in console?

And, what data are you using?

NoonanM commented 6 years ago

I'm using the newest version of the app. Everything is running, it's just not rendering correctly in my browsers (I'm using Safari).

screen shot 2018-08-10 at 12 09 45 pm
NoonanM commented 6 years ago

NOTE: It's rendering correctly on the map page.

screen shot 2018-08-10 at 12 12 01 pm
xhdong-umd commented 6 years ago

Any warning in console? Did you try other browser like chrome? Alternatively you can try increasing the plot size in the variogram control box (it apply to all similar plots in model/home range/occurence pages).

My guess is it's the plot margin. For base plot you have to specify margin numbers, sometimes it doesn't play well with certain configuration.

NoonanM commented 6 years ago

Increasing the plot size didn't work. I'll try again later on a different browser and see if there's any difference.

xhdong-umd commented 6 years ago

Any error message on console?

xhdong-umd commented 6 years ago

@NoonanM You can also send the data and the steps you used (a work report should be enough) to me if that's possible.

xhdong-umd commented 6 years ago

@NoonanM Let's try this method:

dev.off()
plot_ud(hrange_list_sub2, columns = 2, cex = 0.50)

cex is the magnified ratio of plot titles. I used a bigger value in app (0.72). If you have a bigger font size in system, you may need a smaller magnified ratio for it to be displayed properly. These hardwired parameters in base plot are really annoying when you have complex plots and different platforms.

NoonanM commented 6 years ago

I'm travelling this week, but I'll look into this in detail next week.

xhdong-umd commented 6 years ago

@NoonanM After 2 hours work, the page length is preserved now across session. So it will be kept same as long as you didn't quit the app. I think this should be fine even if user loaded multiple data sets.

xhdong-umd commented 5 years ago

@NoonanM Can you send me an example of the home range plot you mentioned?

NoonanM commented 5 years ago

I didn't have time to make an example, so just borrowed one from a google search, but it would look something like this (but with confidence intervals on the bar chart)

barchart

xhdong-umd commented 5 years ago

If this plot is mainly about home range value and confidence interval, I'm inclined to make it just like the overlap page plot. It will put animals in y axis which is a little bit counter intuitive but with some reasons: