After capturing environment from function, return non-null elements. Also exclude p and id, plot object and scale id (usually not needed here)

get_non_null_parameters(parameters)

Arguments

parameters

list captured from as.list(environment()) in function call

Value

a list