passing arguments to function with a view to plotting with ggplot stat_function
问题 I have a function and a list of arguments. F <- function(a,b,...) {a^b+b/a} L <- list("a" = 5, "b" = 2, "c" = 0) I want to replace one of the arguments ("a", "b" or "c") with an unknown x (or "x") and plot with ggplot's stat_function. These computations are part of a shiny app, where the user will 1) select a parameter from a drop-down list, say "a", to be the unknown, and 2) use sliders to select values of the other parameters. The numbers 5, 2, 0 in L are the default parameter values, to be