You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current interface for defining aesthetics using metadata columns requires a string giving the name of the column (e.g. node_AES) and a string giving the name of a function to summarise samples in each cluster (e.g. node_AES_aggr). This approach has the following limitations:
Can't use anonymous functions (e.g. node_colour_aggr = function(x) {...}) (doing this has other issues around naming)
Only one column can be used for each aesthetic
Can't set other arguments in functions
Many function arguments, need (at least) two for each aesthetic
How could we address some of these issues?
Use tidyeval
Use non-standard evaluation, e.g. names instead of strings
The current interface for defining aesthetics using metadata columns requires a string giving the name of the column (e.g.
node_AES
) and a string giving the name of a function to summarise samples in each cluster (e.g.node_AES_aggr
). This approach has the following limitations:node_colour_aggr = function(x) {...}
) (doing this has other issues around naming)How could we address some of these issues?
aes = list(node_colour = list(func = mean, x = colA), ...)
aes
Possible issues to consider:
The text was updated successfully, but these errors were encountered: