Skip to content

Commit

Permalink
change cr_profile_main function name
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisManiere committed Feb 15, 2024
1 parent 477001c commit ca12b72
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

export("%>%")
export(cr_profile_empty)
export(cr_section_main)
export(cr_profile_main)
export(data_get_axis)
export(data_get_axis_start_end)
export(data_get_bassins)
Expand Down
2 changes: 1 addition & 1 deletion R/fct_cr_profile.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ cr_profile_empty <- function() {
#'
#' @return plotly cross section plot.
#' @export
cr_section_main <- function(data){
cr_profile_main <- function(data){
section <- plot_ly(data = data, x = ~distance, y = ~profile, type = 'scatter',
yaxis = 'y1', key = data$id, # the "id" column for hover text
mode = 'lines+markers', fill = 'tozeroy', fillcolor = '#B0B0B0',
Expand Down
2 changes: 1 addition & 1 deletion R/mod_explore.R
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ mod_explore_server <- function(id, con){
r_val$data_section = data_get_elevation_profiles(selected_dgo_fid = input$exploremap_shape_click$id,
con = con)
# plot cross section
r_val$section = cr_section_main(data = r_val$data_section)
r_val$section = cr_profile_main(data = r_val$data_section)
# get dgo clicked feature
r_val$data_dgo_clicked = r_val$dgo_axis %>%
filter(fid == input$exploremap_shape_click$id)
Expand Down
6 changes: 3 additions & 3 deletions man/cr_section_main.Rd → man/cr_profile_main.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ca12b72

Please sign in to comment.