Users should be able to call aes() without specifying x and y parameters when inheriting data from a prior layer, however this does not currently work with out set up due to how ggplot2::layer_data() works by seeking out the last_plot() made.
As an interim catch for this, this PR seeks to set up a check function to prompt users to supply x and y for mapping.
Proposed Changes
List changes below in bullet format:
Add check_missing_params() function to set up block for x/y aes() args
Description
Users should be able to call
aes()
without specifying x and y parameters when inheriting data from a prior layer, however this does not currently work with out set up due to howggplot2::layer_data()
works by seeking out thelast_plot()
made.As an interim catch for this, this PR seeks to set up a check function to prompt users to supply x and y for mapping.
Proposed Changes
List changes below in bullet format:
check_missing_params()
function to set up block for x/yaes()
argsIssue Addressed
Related to #27