CHOP-CGTInformatics / ggswim

Create swimmer plots with ggplot2
https://chop-cgtinformatics.github.io/ggswim/
Other
22 stars 3 forks source link

check_missing_params function #28

Closed rsh52 closed 7 months ago

rsh52 commented 7 months ago

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 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:

Issue Addressed

Related to #27