leppott / MBSStools

Suite of tools for data manipulation and calculations for Maryland DNR MBSS program.
https://leppott.github.io/MBSStools/
GNU General Public License v3.0
3 stars 3 forks source link

Add Shiny App #22

Closed leppott closed 4 years ago

leppott commented 5 years ago

Is your feature request related to a problem? Please describe. Add a Shiny app for metric calculation.

Describe the solution you'd like

Describe alternatives you've considered NA

Additional context May need to include

leppott commented 5 years ago

Also need a function to launch the Shiny app.

leppott commented 5 years ago

runShinyExample() added v1.0.2.9007.

leppott commented 5 years ago

Basic Structure.

image

leppott commented 5 years ago

Add plots, using example data sets.

Plot Code

library(ggplot2)

FIBI

plot_FIBI <- ggplot(Metrics.Fish.Scores, aes(IBI), fill=FIBISTRATA, shape=FIBISTRATA) + geom_dotplot(aes(fill=FIBISTRATA)) + #balks at bins=30 labs(x="FIBI") + geom_vline(xintercept = 3) + scale_x_continuous(limits = c(1, 5)) + scale_fill_discrete(name="STRATA", breaks=c("COASTAL", "EPIEDMONT", "HIGHLAND", "COLD")) + theme(axis.title.y=element_blank(), axis.ticks.y=element_blank(), axis.text.y=element_blank()) plot_FIBI

BIBI

plot_BIBI <- ggplot(Metrics.Bugs.Scores.MBSS, aes(IBI), fill=STRATA_R, shape=STRATA_R) + geom_dotplot(aes(fill=STRATA_R)) + labs(x="BIBI") + geom_vline(xintercept = 3) + scale_x_continuous(limits = c(1, 5)) + scale_fill_discrete(name="STRATA", breaks=c("COASTAL", "EPIEDMONT", "HIGHLAND")) + theme(axis.title.y=element_blank(), axis.ticks.y=element_blank(), axis.text.y=element_blank()) plot_BIBI

image

image

leppott commented 4 years ago

Remove input file (original uploaded and modified for calculation) from download. Used "pattern = "^results_" in zip command in server.R.

leppott commented 4 years ago

Changed download files from TSV to CSV.