Plot index (either W`*` or BRI`*`)

braidHymo_plot(
  tib_morpho_index,
  index = "BRI*",
  position,
  color,
  threshold = "default"
)

Arguments

tib_morpho_index

the table with morphological indexes values, resulting from a call to braidHymo().

index

the index used (can be either "W*" or "BRI*". Defaults to "BRI*").

position

the variable according to which estimates should be placed on graphic.

color

the variable according to which estimates should be colored.

threshold

the threshold for a section to be considered as braiding (defaults to "default", i.e. 0.004 if the index considered is BRI or 10 if the index considered is W*).

Value

plot of index

Examples

rivers=readr::read_csv("data-raw/rivers.csv") %>%
   dplyr::mutate(filepath=paste0("data-raw/",filepath)) %>%
   dplyr::mutate(year=as.factor(year))
#> Error: 'data-raw/rivers.csv' does not exist in current working directory ('/home/lvaudor/Documents/Developpement/geomorpho/braidHymo/docs/reference').
result=braidHymo(rivers)
#> Error in UseMethod("mutate"): no applicable method for 'mutate' applied to an object of class "c('double', 'numeric')"
braidHymo_plot(result,index="BRI*", position=year, color=river)
#> Error in dplyr::filter(., type == index): object 'result' not found
braidHymo_plot(result,index="W*", position=year, color=river)
#> Error in dplyr::filter(., type == index): object 'result' not found