-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Starting to add the Glossary to the protocol
- Loading branch information
1 parent
c085c7f
commit 62be5b7
Showing
9 changed files
with
135 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#' Glossary UI Function | ||
#' | ||
#' @description A shiny Module. | ||
#' | ||
#' @param id,input,output,session Internal parameters for {shiny}. | ||
#' | ||
#' @noRd | ||
#' | ||
#' @importFrom shiny NS tagList | ||
#' @importFrom bs4Dash insertTab tabItem tabItems | ||
#' @importFrom shiny actionButton tabsetPanel column | ||
mod_Glossary_ui <- function(id){ | ||
ns <- NS(id) | ||
|
||
bs4Dash::tabItem( | ||
tabName = "Glossary", | ||
shiny::fluidPage( | ||
shiny::fluidRow( | ||
shiny::column(width = 2), | ||
shiny::column(width = 12, | ||
bs4Dash::tabsetPanel( | ||
id = ns("Glossary"), | ||
type = "pills", | ||
vertical = FALSE, | ||
selected = "Glossary", | ||
# News panel | ||
shiny::tabPanel( | ||
title = "Glossary", | ||
shiny::br(), | ||
bs4Dash::box( | ||
title = "Glossary", | ||
status = "primary", | ||
solidHeader = TRUE, | ||
collapsed = FALSE, | ||
width = 12, | ||
DT::dataTableOutput('glossary_table') | ||
) | ||
) | ||
) | ||
) | ||
) | ||
) # End fluidpage | ||
) # End of tabItem | ||
} | ||
|
||
#' Glossary Server Functions | ||
#' | ||
#' @noRd | ||
mod_Glossary_server <- function(id){ | ||
shiny::moduleServer( id, function(input, output, session){ | ||
ns <- session$ns | ||
|
||
# Get the protocol for print | ||
ppath <- system.file("glossary_table.csv", | ||
package = "ODPSCP", | ||
mustWork = TRUE) | ||
output$glossary_table <- DT::renderDataTable( | ||
read.csv(ppath) | ||
) | ||
}) | ||
} | ||
|
||
## To be copied in the UI | ||
# mod_Glossary_ui("Glossary_1") | ||
|
||
## To be copied in the server | ||
# mod_Glossary_server("Glossary_1") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Term,Abbreviation,Definition,Reference | ||
Planning unit,PU,The spatial- or spatial-temporal geographical unit over which a decision is made. Typical examples include a grid cell or vector shape (such as farmland or country borders).,Authors | ||
Target,T,An explicit parameter quantifying the desired representation of a given feature in the prioritization. ,"Adapted from Margules, C. R., & Sarkar, S. (2007). Systematic conservation planning. Cambridge University Press. " | ||
Representation,,Can be measured as the fraction of features that meet their set of targets. Or alternatively if targets have not been formulated as the fraction of the total amount of a feature covered by a solution.,"Adapted from Margules, C. R., & Sarkar, S. (2007). Systematic conservation planning. Cambridge University Press. " | ||
Features,F,A set of quantitative datasets included in the planning process and over which priorities should be identified. Examples include for example spatial[-temporal] estimates of species distribution or abundance.,Authors | ||
Systematic conservation planning,SCP,"Systematic conservation planning consists of the use of protocols to identify areas or actions that should have priority for the allocation of [scarce] management resources and separate them from processes which threaten their persistence. Systematic conservation planning is usually implemented with software tools using digital georeferenced data sets and area-selection algorithms. It is a structured step-wise approach to mapping conservation area networks, with feedback, revision and reiteration, where needed, at any stage.","Adapted from Margules, C. R., & Sarkar, S. (2007). Systematic conservation planning. Cambridge University Press. " | ||
Spatial prioritization,,Synonym for the application of an area- or action based algorithm for identifying priority areas. Distinct SCP as it captures only the statistical part of any planning exercise.,Authors | ||
Solution,s,A single output from a spatial prioritization process.,Authors | ||
Cost,c,A [spatial-explicit] estimate of the cost of selecting a given area or action as a priority.,Authors | ||
Complementarity,,Measure of the contribution of an area in a planning region towards the full complement of [biodiversity] features. A set of complementary planning units in a solution increase the likelihood for a conservation network [or action[ to be comprehensive.,"Adapted from Margules, C. R., & Sarkar, S. (2007). Systematic conservation planning. Cambridge University Press. And Wilson, K.A., Cabeza, M. and Klein, C.J., 2009. Fundamental concepts of spatial conservation prioritization. Spatial conservation prioritization: Quantitative methods and computational tools, pp.16-27." | ||
Comprehensiveness,,Defined as a set of priority areas that include at a minimum a portion of every feature used in the planning.,"Wilson, K.A., Cabeza, M. and Klein, C.J., 2009. Fundamental concepts of spatial conservation prioritization. Spatial conservation prioritization: Quantitative methods and computational tools, pp.16-27." | ||
Cost-efficiency,,"A cost-efficient network of priority areas is one that is comprehensive, representative, and/or adequate for the least possible cost. Cost-efficiency is important because it facilitates future expansion of a network of priority areas through the prudent use of conservation resources and is more likely to be defensible in light of competing interests","Wilson, K.A., Cabeza, M. and Klein, C.J., 2009. Fundamental concepts of spatial conservation prioritization. Spatial conservation prioritization: Quantitative methods and computational tools, pp.16-27." | ||
Irreplaceability,,Measures the value of the inclusion of a planning unit in a solution relative to specified targets and other constraints.,"Wilson, K.A., Cabeza, M. and Klein, C.J., 2009. Fundamental concepts of spatial conservation prioritization. Spatial conservation prioritization: Quantitative methods and computational tools, pp.16-27." | ||
Constraint,,A constraint placed on whether or to what extent a given area can be selected as priority.,Authors |