check_plot_type: Check plot `type`
Description
Check plot `type`
Usage
check_plot_type(type, allowed)
Arguments
type
A character string guiding the plot type.
allowed
A character vector of all allowed types e.g. `c('p', 'l')`.
Value
Silent if proper user input else warns for unrecognized `type`.